Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Side by Side Diff: LayoutTests/editing/selection/first-letter-selection-crash.html

Issue 23530010: Make CSSStyleSheet.insertRule() / deleteRule() arguments mandatory (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/asterisk-counter-update-after-layout-crash.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <body> 3 <body>
4 <style> 4 <style>
5 #test2:first-letter { display: block; } 5 #test2:first-letter { display: block; }
6 </style> 6 </style>
7 <script> 7 <script>
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 10
11 window.onload = function() { 11 window.onload = function() {
12 test1 = document.createElement('div'); 12 test1 = document.createElement('div');
13 document.body.appendChild(test1); 13 document.body.appendChild(test1);
14 test2 = document.createElement('div'); 14 test2 = document.createElement('div');
15 test2.setAttribute('id', 'test2'); 15 test2.setAttribute('id', 'test2');
16 test2.appendChild(document.createTextNode('aaa')); 16 test2.appendChild(document.createTextNode('aaa'));
17 test2.style.display = 'inline-block'; 17 test2.style.display = 'inline-block';
18 test1.appendChild(test2); 18 test1.appendChild(test2);
19 test1.appendChild(document.createTextNode('a')); 19 test1.appendChild(document.createTextNode('a'));
20 document.execCommand('selectall'); 20 document.execCommand('selectall');
21 document.body.offsetTop; 21 document.body.offsetTop;
22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }"); 22 document.styleSheets[0].insertRule("#test2 { text-transform: uppercase }", 0 );
23 document.body.offsetTop; 23 document.body.offsetTop;
24 document.body.innerHTML = "PASS"; 24 document.body.innerHTML = "PASS";
25 } 25 }
26 </script> 26 </script>
27 </body> 27 </body>
28 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/counters/asterisk-counter-update-after-layout-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698