media/W3C/video/events/event_progress_manual.html is a flaky failure
[WebKit-https.git] / LayoutTests / css2.1 / t1204-reset-02-c-o.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <html>
3  <head>
4   <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
5   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters">
6   <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content">
7   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter">
8   <meta http-equiv="Content-Script-Type" content="text/javascript"></meta>
9   <style type="text/css">
10
11   body { white-space: nowrap; }
12
13
14   #test, .reset { counter-reset: c; }
15   .increment:before { content: counters(c, ".") "-"; }
16   .increment { counter-increment: c; }
17
18   </style>
19   <script type="text/javascript">
20
21   function run() {
22         document.getElementById("one").setAttribute("class", "reset");
23     document.getElementById("two").removeAttribute("class");
24   }
25
26   </script>
27  </head>
28  <body onload="setTimeout('run()', 0)">
29
30  <p>The following two lines should be the same:</p>
31
32  <div id="test"><span class="increment"></span><span><span id="one"><span class="increment"></span></span></span><span class="increment"></span><span><span class="reset" id="two"><span class="increment"></span></span></span><span class="increment"></span></div>
33
34  <div id="reference">1-1.1-2-3-4-</div>
35
36  </body>
37 </html>