OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>The word "BONZER" should be adjacent to the hotpink square.</p> |
| 3 <div style="position:relative; overflow:hidden;"> |
| 4 |
| 5 <div style="float:left; width:100%; height:1px;"></div> |
| 6 <div style="float:left; width:100%;"> |
| 7 <div id="innerFloat" style="float:left; width:666px; height:20px; backgr
ound:hotpink;"></div> |
| 8 <span id="targetSpan">BONZER<br></span> |
| 9 </div> |
| 10 </div> |
| 11 <script src="../../../resources/testharness.js"></script> |
| 12 <script src="../../../resources/testharnessreport.js"></script> |
| 13 <script> |
| 14 test(() => { |
| 15 document.body.offsetTop; |
| 16 innerFloat.style.width = "20px"; |
| 17 assert_equals(targetSpan.offsetLeft, 20); |
| 18 }, "Resize inner float next to line"); |
| 19 </script> |
OLD | NEW |