| OLD | NEW |
| 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 Loading... |
| 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> |
| OLD | NEW |