summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/449362-1.html
blob: 3da4e4ac76b92b0208649a7e35fb2402d6825473 (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
69
70
71
72
73
74
<html class="reftest-wait">
<head>
    <title>FF3 Test</title>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	
	<style>
		td {
			border: 1px solid;
			vertical-align: top;
		}
	</style>
	<script type="text/javascript" language="JavaScript">
		/**
		 * Display the element 'idShow' and hide the element 'idHide'.
		 *
		 * @param idShow the id of the element to show.
		 * @param idHide the id of the element to hide.
		 */
		toggleElements = function(idShow, idHide)
		{

			var elementHide = document.getElementById(idHide);
			var elementShow = document.getElementById(idShow);
			if (elementHide && elementShow)
			{
				elementHide.style.display = 'none';
				elementShow.style.display = '';
			}

		}
  function doTest()
  {
    toggleElements('B', 'A');
    document.documentElement.removeAttribute("class");
  }
  window.addEventListener("MozReftestInvalidate", doTest, false);
	</script>

</head>

<body>

<table id="pp_owned" align="center" cellpadding="0" cellspacing="0">
    
<tbody>
  <tr >
	<td >Column 1</td>
    <td >Column 2</td>
  </tr>
  <tr>

    <td >
hello
    </td>
    <td >
        <span id="A">
              Click me!
		</span>
		<span id="B" style="display: none;" >
		    Now I am<br />
		    higher.<br />

		    Click me<br />
		    Again!
        </span>
    </td>
  </tr>
</tbody>
</table>
</body>
</html>