summaryrefslogtreecommitdiffstats
path: root/layout/generic/crashtests/380012-1.html
blob: 6cd7e1018e642d9ab66bdaa63824f68669142ceb (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
42
<!DOCTYPE html>
<html class="reftest-wait">
<head>

<style>
  .fl:first-line { }
  .inh { position: inherit; }
  .abs { position: absolute; }
</style>
 
<script>

var x, y;

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.documentElement.removeAttribute("class");
}

</script>

</head>

<body onload="setTimeout(boom, 5);">
<div id="x">
  <p id="y">foo</p>
</div>
</body>

</html>