1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>Counters in :before node that is hidden inside an anonymous block.
</title>
5 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#propdef-content">
6 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#content">
7 <meta name=
"flags" content=
"">
8 <meta name=
"assert" content=
"DumpRenderTree finds couner when anonymous
9 renderers intervene between the element and its :before descendant.">
10 <style type=
"text/css">
12 content: counters
(test
, ".");
16 border: 2px solid black
;
19 <script src=
"../../../resources/js-test.js"></script>
20 <script type=
"text/javascript">
22 if (window
.testRunner
)
23 testRunner
.dumpAsText();
27 if (!window
.testRunner
)
29 shouldBe("window.internals.counterValue(document.getElementById('div1'))", "'0'");
32 debug('TEST COMPLETE');
33 // Eliminate confusing messages (counter values won't be dumped by dumpAsText).
34 var viewElement
= document
.getElementById("testView");
35 viewElement
.parentNode
.removeChild(viewElement
);
40 <body onload=
"run();">
42 <p>Test passes if there is a
"0" in the box below.
</p>
47 <div id=
"console"></div>