2 <div style=
"width: 2000px; position: absolute; left: -9000px;">
3 <table style=
"background-color:blue"><tr><td>
5 <table id=
"table" style=
"width:100%; background-color:green; table-layout:fixed;"><tr><td>
12 <span id=
"result">This test failed. The width of the fixed table should be
1994px, which is based on the width of its containing div.
</span>
15 var table
= document
.getElementById("table");
16 var result
= document
.getElementById("result");
17 if (window
.getComputedStyle(table
, null).getPropertyValue("width") == "1994px")
18 result
.innerHTML
= "Success! The width of the fixed table is 1994px, which is based on the width of its containing div.";