Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / floats-with-margin-should-not-wrap.html
blob187d735fb3422a6a763d9f92f2bd508e4f1119fc
1 <!DOCTYPE>
2 <html>
3 <head>
4 <style>
5 body { zoom: 150%; }
6 #container { float: left; }
7 #container > div { float: left; height: 20px; width: 20px; margin-left: -1px; background: orange; }
8 #bottom { clear: both; }
9 </style>
10 </head>
11 <body>
13 <div id="container">
14 <div>1</div>
15 <div>2</div>
16 <div>3</div>
17 </div>
19 <div id="bottom">The three blocks above should all be on the same line.</div>
21 <script>
22 if (window.testRunner)
23 testRunner.dumpAsText();
25 var rect = document.getElementById('container').getBoundingClientRect();
26 var height = rect.bottom - rect.top;
28 if (height == 20)
29 str = 'PASS, the three blocks are all on the same line';
30 else
31 str = 'FAIL, expected the blocks to all be on one line';
33 document.getElementById('bottom').firstChild.nodeValue = str;
34 </script>
36 </body>
37 </html>