OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 body { | 4 body { |
5 counter-reset: section; | 5 counter-reset: section; |
6 } | 6 } |
7 h1 { | 7 h1 { |
8 counter-increment: section; | 8 counter-increment: section; |
9 } | 9 } |
10 h2:before { | 10 h2:before { |
(...skipping 12 matching lines...) Expand all Loading... |
23 content: counter(section, none); | 23 content: counter(section, none); |
24 } | 24 } |
25 </style> | 25 </style> |
26 <script src="../../../resources/js-test.js"></script> | 26 <script src="../../../resources/js-test.js"></script> |
27 </head> | 27 </head> |
28 <body> | 28 <body> |
29 <script> | 29 <script> |
30 description("Test the cssText output of counter-valued CSSPrimitiveValues"); | 30 description("Test the cssText output of counter-valued CSSPrimitiveValues"); |
31 var rules = document.styleSheets[0].cssRules; | 31 var rules = document.styleSheets[0].cssRules; |
32 shouldBeEqualToString("rules[2].style.cssText", "content: counter(section, decim
al);"); | 32 shouldBeEqualToString("rules[2].style.cssText", "content: counter(section, decim
al);"); |
33 shouldBeEqualToString("rules[3].style.cssText", "content: counters(section, ':',
decimal);"); | 33 shouldBeEqualToString("rules[3].style.cssText", "content: counters(section, \":\
", decimal);"); |
34 shouldBeEqualToString("rules[4].style.cssText", "content: counter(section, lower
-roman);"); | 34 shouldBeEqualToString("rules[4].style.cssText", "content: counter(section, lower
-roman);"); |
35 shouldBeEqualToString("rules[5].style.cssText", "content: counters(section, ',',
upper-roman);"); | 35 shouldBeEqualToString("rules[5].style.cssText", "content: counters(section, \",\
", upper-roman);"); |
36 shouldBeEqualToString("rules[6].style.cssText", "content: counter(section, none)
;"); | 36 shouldBeEqualToString("rules[6].style.cssText", "content: counter(section, none)
;"); |
37 </script> | 37 </script> |
38 </body> | 38 </body> |
39 </html> | 39 </html> |
OLD | NEW |