blob: c4a2b14146f76ec91b0ca1ece1b5769a36c173f4 [file] [log] [blame]
<html><head>
<style>
.c0:after { counter-increment:section; content: counter(section); }
</style>
<script src="../../../resources/js-test.js"></script>
<script>
jsTestIsAsync = true;
function run()
{
shouldBe("window.internals.counterValue(document.getElementById('c2'))", "'2'");
finishJSTest();
}
</script>
</head><body onload="setTimeout('run()', 0);">
<p>This test passes if the numbers displayed below are 1 and 2 in this order.</p>
<div>
<div style="counter-reset: section;"></div>
<div><span id="c1" class=c0><div></div></span></div>
<div id="c2" class=c0></div>
</div>
<div id="console"></div>
</body></html>