Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / float / float-on-clean-line.html
blobed2ffb3ee239fe616f2aed79db797355860cae74
1 <!DOCTYPE html>
2 <style>
3 img { padding-right: 100%; height: 20px; }
4 source { padding-right: 1px; }
5 img:nth-child(odd) { width: 5px; }
6 #area { float: right; width: 10px; }
7 </style>
8 <script src="../../../resources/check-layout.js"></script>
9 <script>
10 function boom() {
11 firstdiv = document.createElement('div');
12 document.body.appendChild(firstdiv);
13 firstdiv.setAttribute("id", "first");
14 firstdiv.setAttribute("data-expected-height", "0");
16 seconddiv = document.createElement('div');
17 document.body.appendChild(seconddiv);
19 img = document.createElement('img');
20 document.body.appendChild(img);
22 div = document.createElement('div');
23 div.setAttribute('id', 'area');
24 document.body.appendChild(div);
26 source = document.createElement('source');
27 document.body.appendChild(source);
29 document.body.offsetTop;
30 document.body.removeChild(seconddiv);
31 checkLayout('#first')
33 window.onload = boom;
34 </script>
35 <!-- crbug.com/492918 : Floats on clean lines should stay with them. -->