1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
4 <style type=
"text/css">
7 border-collapse: collapse
;
26 if (window
.testRunner
) {
27 testRunner
.dumpAsText();
28 testRunner
.waitUntilDone();
32 var console
= document
.getElementById('console');
33 console
.appendChild(document
.createTextNode(msg
));
34 console
.appendChild(document
.createElement('br'));
36 function toggleWidth()
38 var col
= document
.getElementById('colgroup').children
[0];
39 var oldCellWidth
= getComputedStyle(document
.getElementById('cell')).width
;
40 col
.style
.width
= "100px";
41 var newCellWidth
= getComputedStyle(document
.getElementById('cell')).width
;
43 log("Cell width was " + oldCellWidth
);
44 log("Cell width is " + newCellWidth
);
45 if (oldCellWidth
!= newCellWidth
)
46 log("PASSED: Cell changed width");
48 log("FAILED: Cell did not change width");
49 testRunner
.notifyDone();
53 <body onload=
"toggleWidth();">
55 <colgroup id=
"colgroup">
56 <col style=
"width: 50px">