3 .c0:after { counter-increment:section; content: counter(section); }
5 <script src=
"../../../resources/js-test.js"></script>
7 if (window
.testRunner
) {
8 testRunner
.dumpAsText();
9 testRunner
.waitUntilDone();
13 shouldBe("window.internals.counterValue(document.getElementById('c2'))", "'2'");
16 debug('TEST COMPLETE');
17 if (window
.testRunner
)
18 testRunner
.notifyDone();
21 </head><body onload=
"setTimeout('run()', 0);">
22 <p>This test passes if the numbers displayed below are
1 and
2 in this order.
</p>
24 <div style=
"counter-reset: section;"></div>
25 <div><span id=
"c1" class=c0
><div></div></span></div>
26 <div id=
"c2" class=c0
></div>
28 <div id=
"console"></div>