| window.onload = function() { |
| window.testRunner.dumpAsText(); |
| var cell = document.getElementById("cell"); |
| var text = cell.firstElementChild; |
| var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputedStyle(cell).getPropertyValue('padding-right')) + |
| parseInt(window.getComputedStyle(cell).getPropertyValue('padding-left'))); |
| <div style="float: left;"> |
| <table style="margin: 1px"> |
| <td id="cell" style="background-color: green; width: 100%; height: 30px"> |
| <div style="clear: left;">The green box should be the full width of the page.</div> |