OLD | NEW |
(Empty) | |
| 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"); |
| 15 |
| 16 seconddiv = document.createElement('div'); |
| 17 document.body.appendChild(seconddiv); |
| 18 |
| 19 img = document.createElement('img'); |
| 20 document.body.appendChild(img); |
| 21 |
| 22 div = document.createElement('div'); |
| 23 div.setAttribute('id', 'area'); |
| 24 document.body.appendChild(div); |
| 25 |
| 26 source = document.createElement('source'); |
| 27 document.body.appendChild(source); |
| 28 |
| 29 document.body.offsetTop; |
| 30 document.body.removeChild(seconddiv); |
| 31 checkLayout('#first') |
| 32 } |
| 33 window.onload = boom; |
| 34 </script> |
| 35 <!-- crbug.com/492918 : Floats on clean lines should stay with them. --> |
OLD | NEW |