RetroZilla/layout/html/tests/table/bugs/bug60749.html

37 lines
841 B
HTML
Raw Normal View History

2015-10-21 05:03:22 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>This is a title</title>
<script type="text/javascript">
function test1() {
var e1 = document.getElementById("myTd");
e1.style.width = 300;
var e2 = document.getElementById("table");
}
function test2() {
var e1 = document.getElementById("myTd");
e1.style.width = 300;
var e2 = document.getElementById("table");
e2.style.display = 'none';
e2.style.display = '';
}
</script>
</head>
<body onload=test1()>
<table id="table" cellspacing=0 border=3>
<tr>
<td>fieldLabel</td>
<td id="myTd">&nbsp;&nbsp;&nbsp;InspectionText</td>
</tr>
</table>
<form action="">
<input type="button" value="change width" onclick="test1()">
<input type="button" value="change width with table reflow"
onclick="test2()">
</form>
</body>
</html>