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