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

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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 	var t = document.getElementById("test");
    20 	var s = document.createElement("span");
    21 	s.setAttribute("class", "reset");
    22 	t.insertBefore(s, t.childNodes.item(1));
    23 	document.documentElement.removeAttribute('class');
    24   }
    26   document.addEventListener("MozReftestInvalidate", run, false);
    27   </script>
    28  </head>
    29  <body>
    31  <div id="test"><span class="increment"></span><span class="increment"></span><span class="increment"></span></div>
    33  </body>
    34 </html>

mercurial