layout/reftests/counters/t1204-reset-02-c-o-test.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     2 <html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     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"/>
     9   <style type="text/css">
    11   #test, .reset { counter-reset: c; }
    12   .increment:before { content: counters(c, ".") "-"; }
    13   .increment { counter-increment: c; }
    15   </style>
    16   <script type="text/javascript">
    18   function run() {
    19 	document.getElementById("one").setAttribute("class", "reset");
    20 	document.getElementById("two").removeAttribute("class");
    21 	document.documentElement.removeAttribute('class');
    22   }
    24   document.addEventListener("MozReftestInvalidate", run, false);
    25   </script>
    26  </head>
    27  <body>
    29  <div id="test"><span class="increment"></span><span><span id="one"><span class="increment"></span></span></span><span class="increment"></span><span><span id="two" class="reset"><span class="increment"></span></span></span><span class="increment"></span></div>
    31  </body>
    32 </html>

mercurial