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

branch
TOR_BUG_9701
changeset 3
141e0f1194b1
equal deleted inserted replaced
-1:000000000000 0:35c45e7decb4
1 <!DOCTYPE html>
2 <html class="reftest-wait">
3 <head>
4
5 <style>
6 .fl:first-line { }
7 .inh { position: inherit; }
8 .abs { position: absolute; }
9 body { visibility: hidden; }
10 </style>
11
12 <script>
13
14 function boom()
15 {
16 x = document.getElementById("x");
17 y = document.getElementById("y");
18
19 x.setAttribute('class', "fl abs");
20 y.setAttribute('class', "inh");
21 setTimeout(boom2, 5);
22 }
23
24 function boom2()
25 {
26 y.setAttribute('class', "abs");
27 document.body.offsetWidth;
28 document.documentElement.className = "";
29 }
30
31 </script>
32
33 </head>
34
35 <body onload="setTimeout(boom, 5);">
36 <div id="x">
37 <p id="y">foo</p>
38 </div>
39 </body>
40
41 </html>

mercurial