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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/counters/counter-reset-subtree-insert-crash.html

Issue 1476863003: bindings: Ignores the last undefined arguments when counting the args. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated layout tests. Created 5 years 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
OLDNEW
1 <style> 1 <style>
2 #el0::after { 2 #el0::after {
3 content: counter(c); 3 content: counter(c);
4 counter-increment: c; 4 counter-increment: c;
5 } 5 }
6 6
7 #el1 { 7 #el1 {
8 content: counter(c); 8 content: counter(c);
9 counter-increment: c; 9 counter-increment: c;
10 } 10 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 if (window.testRunner) 45 if (window.testRunner)
46 testRunner.dumpAsText(); 46 testRunner.dumpAsText();
47 47
48 window.onload = function() { 48 window.onload = function() {
49 rules = [ 49 rules = [
50 "#el2::after { counter-increment: c; } ", 50 "#el2::after { counter-increment: c; } ",
51 "xyz { } " 51 "xyz { } "
52 ]; 52 ];
53 stylesheet = document.styleSheets[0]; 53 stylesheet = document.styleSheets[0];
54 document.body.offsetTop; 54 document.body.offsetTop;
55 stylesheet.insertRule(rules[0], stylesheet.length); 55 stylesheet.insertRule(rules[0], stylesheet.cssRules.length);
56 document.body.offsetTop; 56 document.body.offsetTop;
57 stylesheet.insertRule(rules[1], stylesheet.length) 57 stylesheet.insertRule(rules[1], stylesheet.cssRules.length)
58 document.body.innerHTML = "PASS: reparenting a counter node subtree that conta ins resets does not cause a crash."; 58 document.body.innerHTML = "PASS: reparenting a counter node subtree that conta ins resets does not cause a crash.";
59 } 59 }
60 </script> 60 </script>
61 61
62 <body> 62 <body>
63 <span id="el0"> 63 <span id="el0">
64 <div id="el1"></div> 64 <div id="el1"></div>
65 <div id="el2"> 65 <div id="el2">
66 <div id="el3"></div> 66 <div id="el3"></div>
67 <span id="el4"></span> 67 <span id="el4"></span>
68 </div> 68 </div>
69 <div id="el5"></div> 69 <div id="el5"></div>
70 </span> 70 </span>
71 </body> 71 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698