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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/counters/t1204-reset-01-c-o-test.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
     1.5 +<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
     1.6 + <head>
     1.7 +  <title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
     1.8 +  <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/>
     1.9 +  <link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#propdef-content"/>
    1.10 +  <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#counter"/>
    1.11 +  <meta http-equiv="Content-Script-Type" content="text/javascript"/>
    1.12 +  <style type="text/css">
    1.13 +
    1.14 +  #test, .reset { counter-reset: c; }
    1.15 +  .increment:before { content: counters(c, ".") "-"; }
    1.16 +  .increment { counter-increment: c; }
    1.17 +
    1.18 +  </style>
    1.19 +  <script type="text/javascript">
    1.20 +
    1.21 +  function run() {
    1.22 +	var t = document.getElementById("test");
    1.23 +	t.removeChild(t.childNodes.item(1));
    1.24 +	document.documentElement.removeAttribute('class');
    1.25 +  }
    1.26 +
    1.27 +  document.addEventListener("MozReftestInvalidate", run, false);
    1.28 +  </script>
    1.29 + </head>
    1.30 + <body>
    1.31 +
    1.32 + <div id="test"><span class="increment"></span><span class="reset"></span><span class="increment"></span><span class="increment"></span></div>
    1.33 +
    1.34 + </body>
    1.35 +</html>

mercurial