1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <title>CSS Test: Counter-increment tests
</title>
5 <link rel=
"author" title=
"Microsoft" href=
"http://www.microsoft.com/">
6 <link rel=
"help" href=
"http://www.w3.org/TR/CSS21/generate.html#counters">
7 <script src=
"../../../resources/js-test.js"></script>
9 if (window
.testRunner
) {
10 testRunner
.dumpAsText();
11 testRunner
.waitUntilDone();
15 // Some extra WebKit testing for counter-increment inherit
16 shouldBe("window.internals.counterValue(document.getElementById('wrapper90'))", "'5'");
17 shouldBe("window.internals.counterValue(document.getElementById('test90'))", "'10'");
18 shouldBe("window.internals.counterValue(document.getElementById('test90a'))", "'15'");
19 shouldBe("window.internals.counterValue(document.getElementById('wrapper91'))", "'10'");
20 shouldBe("window.internals.counterValue(document.getElementById('test91'))", "'20'");
21 shouldBe("window.internals.counterValue(document.getElementById('test91a'))", "'30'");
22 if (window
.testRunner
)
23 testRunner
.notifyDone();
26 <style type=
"text/css">
27 #wrapper90 /*test 90*/
29 counter-increment: ident90
5;
33 content: counter
(ident90
);
37 counter-increment: inherit
;
41 content: counter
(ident90
);
45 counter-increment: inherit
;
49 content: counter
(ident90
);
52 #wrapper91 /*test 91*/
54 counter-increment: ident91
5 ident91
5;
58 content: counter
(ident91
);
62 counter-increment: inherit
;
66 content: counter
(ident91
);
70 counter-increment: inherit
;
74 content: counter
(ident91
);
79 <body onload=
"setTimeout('run()', 0);">
82 <div id=
"test90a"></div>
87 <div id=
"test91a"></div>