5 counter-reset: section;
8 counter-increment: section;
11 content: counter(section);
14 content: counters(section,
":", decimal);
17 content: counter(section, lower-roman);
20 content: counters(section,
",", upper-roman);
23 content: counter(section, none);
26 <script src=
"../../../resources/js-test.js"></script>
30 description("Test the cssText output of counter-valued CSSPrimitiveValues");
31 var rules
= document
.styleSheets
[0].cssRules
;
32 shouldBeEqualToString("rules[2].style.cssText", "content: counter(section);");
33 shouldBeEqualToString("rules[3].style.cssText", "content: counters(section, \":\");");
34 shouldBeEqualToString("rules[4].style.cssText", "content: counter(section, lower-roman);");
35 shouldBeEqualToString("rules[5].style.cssText", "content: counters(section, \",\", upper-roman);");
36 shouldBeEqualToString("rules[6].style.cssText", "content: counter(section, none);");