6 #container { float: left; }
7 #container
> div { float: left; height:
20px; width:
20px; margin-left: -
1px; background: orange; }
8 #bottom { clear: both; }
19 <div id=
"bottom">The three blocks above should all be on the same line.
</div>
22 if (window
.testRunner
)
23 testRunner
.dumpAsText();
25 var rect
= document
.getElementById('container').getBoundingClientRect();
26 var height
= rect
.bottom
- rect
.top
;
29 str
= 'PASS, the three blocks are all on the same line';
31 str
= 'FAIL, expected the blocks to all be on one line';
33 document
.getElementById('bottom').firstChild
.nodeValue
= str
;