| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body | 5 body |
| 6 { | 6 { |
| 7 counter-reset: i 0; | 7 counter-reset: i 0; |
| 8 } | 8 } |
| 9 | 9 |
| 10 div:before | 10 div:before |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 counters += divItem.textContent; | 47 counters += divItem.textContent; |
| 48 } | 48 } |
| 49 document.getElementById("container").innerHTML = counters; | 49 document.getElementById("container").innerHTML = counters; |
| 50 testRunner.notifyDone(); | 50 testRunner.notifyDone(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 function test() | 53 function test() |
| 54 { | 54 { |
| 55 for (var i = 0; i < 5; ++i) | 55 for (var i = 0; i < 5; ++i) |
| 56 insertAuto(i); | 56 insertAuto(i); |
| 57 if (testRunner) { | 57 if (window.testRunner) { |
| 58 setTimeout("dumpCounters()", 0); | 58 setTimeout("dumpCounters()", 0); |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 window.addEventListener("load", test, false); | 61 window.addEventListener("load", test, false); |
| 62 </script> | 62 </script> |
| 63 </head> | 63 </head> |
| 64 <body> | 64 <body> |
| 65 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=38291">38291</a> - C
SS counters in :before pseudo-elements do not always update</p> | 65 <p>Bug <a href="https://bugs.webkit.org/show_bug.cgi?id=38291">38291</a> - C
SS counters in :before pseudo-elements do not always update</p> |
| 66 <p>The following two lines should be the same:</p> | 66 <p>The following two lines should be the same:</p> |
| 67 <p>-1--2-3-4-5-6</p> | 67 <p>-1--2-3-4-5-6</p> |
| 68 <div id="container"><span>-</span></div> | 68 <div id="container"><span>-</span></div> |
| 69 </body> | 69 </body> |
| 70 </html> | 70 </html> |
| OLD | NEW |