1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
8 Test for
<i><a href=
"https://bugs.webkit.org/show_bug.cgi?id=24971">https://bugs.webkit.org/show_bug.cgi?id=
24971</a>
9 Setting style.height = value in javascript doesn't work in tablerows(
<tr
>)
</i>. This test PASSED if you see
2 'PASS' messages below.
12 <table cellspacing=
"0" cellpadding=
"0" style=
"height: 100px">
13 <tr style=
"background: green;" id=
"t">
14 <td style=
"width: 50px; height: 50px"></td>
16 <tr style=
"background: red;">
21 <script type=
"text/javascript">
24 document
.getElementById("log").innerText
+= message
+ "\n";
27 if (window
.testRunner
)
28 testRunner
.dumpAsText();
30 var tableRow
= document
.getElementById("t");
31 log((tableRow
.offsetHeight
== 50 ? "PASS" : "FAIL") + ": initial height of the row should be 50px.");
33 tableRow
.style
.height
='100px';
34 log((tableRow
.offsetHeight
== 100 ? "PASS" : "FAIL") + ": final height of the row should be 100px.");