layout/reftests/first-line/stress-3.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait" id="fl" style="position: absolute">
     3 <head>
     5 <style>
     7 .flcounter:first-line { content: counter(egg); }
     9 #fl:first-line { }
    11 </style>
    13 <script>
    15 function boom()
    16 {
    17   document.documentElement.appendChild(document.createTextNode("\n"));
    18   document.getElementById("div").style.counterReset = "";
    19   setTimeout(boom2, 20);
    20 }
    22 function boom2()
    23 {
    24   document.body.removeAttribute("class");
    25   document.body.offsetWidth;
    26   document.documentElement.className = "";  
    27 }
    29 </script>
    30 </head>
    32 <body style="position: inherit; float: left;" class="flcounter" onload="boom();">
    33 <div id="div" style="counter-reset: chicken;"></div>
    34 </body>
    35 </html>

mercurial