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.

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

mercurial