summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/421632-1.html
blob: 4550ca5aee4cf4d474ca3c2d8b5ee6646328ee8a (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
67
68
<!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;
 -moz-outline-radius: .3em;
}

.t1 tr {
 outline: 1px solid red;
 -moz-outline-radius: .3em;
}

</style>

<script type="text/javascript">

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

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

</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>