summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/421632-1.html
blob: 9b8fee873bf3206b39d2a71a9aca6d48a3897b0f (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html class="reftest-wait"> 

<head>
<title></title>

<style>

body {
 margin: 20px;
}

tr {
 background: gray;
}

.t2 tr {
 outline: 1px solid gray;
}

.t1 tr {
 outline: 1px solid red;
}

</style>

<script type="text/javascript">

function showBug() {
  document.getElementById("table1").setAttribute("class", "t1");
}

window.addEventListener("MozReftestInvalidate",
  function() {
    showBug();
    document.documentElement.className = "";
  });

</script>

</head>

<body>

<table id="table1">
  <tr><td>AAAA</td></tr>
  <tr><td>AAAA</td></tr>

  <tr><td>AAAA</td></tr>
  <tr><td>AAAA</td></tr>
</table>

<table class="t2">
  <tr><td>AAAA</td></tr>
  <tr><td>AAAA</td></tr>
  <tr><td>AAAA</td></tr>

  <tr><td>AAAA</td></tr>
</table>

<br/>
<form method="get" action="#">
  <input type="button" onclick="showBug(); return false;" value="Trigger bug"/>
</form>

</body> </html>