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; }
8 <script src=
"../../../resources/check-layout.js"></script>
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
);
35 <!-- crbug.com/492918 : Floats on clean lines should stay with them. -->