mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-06 09:05:45 +00:00
36 lines
655 B
HTML
36 lines
655 B
HTML
|
<!DOCTYPE html>
|
||
|
<html class="reftest-wait">
|
||
|
<head>
|
||
|
<style>
|
||
|
#t {
|
||
|
display: none;
|
||
|
}
|
||
|
</style>
|
||
|
<script lang="JavaScript">
|
||
|
function toggleLayer(id) {
|
||
|
var s = document.getElementById(id).style;
|
||
|
s.display = s.display ? "" : "block";
|
||
|
}
|
||
|
|
||
|
function doTest() {
|
||
|
toggleLayer('t');
|
||
|
document.body.offsetWidth;
|
||
|
toggleLayer('t');
|
||
|
document.body.offsetWidth;
|
||
|
toggleLayer('t');
|
||
|
document.documentElement.className = "";
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body onload="doTest()">
|
||
|
<table style="width: 100%;" border="5">
|
||
|
<tr>
|
||
|
<td id="t">First row</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>Second row</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</body>
|
||
|
</html>
|