1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/counters/t1204-increment-02-c-o-test.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 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-Style-Type" content="text/css"/> 1.12 + <meta http-equiv="Content-Script-Type" content="text/javascript"/> 1.13 + <style type="text/css"> 1.14 + 1.15 + #test, .reset { counter-reset: c; } 1.16 + .increment:before, .use:before { content: counters(c, ".") "-"; } 1.17 + .increment { counter-increment: c; } 1.18 + 1.19 + </style> 1.20 + <script type="text/javascript"> 1.21 + 1.22 + function run() { 1.23 + document.getElementById("one").removeAttribute("class"); 1.24 + document.getElementById("two").setAttribute("class", "increment"); 1.25 + document.getElementById("three").setAttribute("style", "counter-increment: c"); 1.26 + document.documentElement.removeAttribute('class'); 1.27 + } 1.28 + 1.29 + document.addEventListener("MozReftestInvalidate", run, false); 1.30 + </script> 1.31 + </head> 1.32 + <body> 1.33 + 1.34 + <div id="test"><span id="one" class="increment"></span><span><span class="reset"><span class="increment"></span><span id="two" class="increment"></span></span></span><span id="three" class="use"></span><span class="increment"></span></div> 1.35 + 1.36 + </body> 1.37 +</html>