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