OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>There should be a blue <em>square</em> below.</p> |
| 3 <div style="margin-left:100px; width:50px; height:25px; background:blue;"></div> |
| 4 <div style="columns:2; column-fill:auto; height:90px; line-height:20px; widows:3
;"> |
| 5 <div id="lines" style="position:relative; width:100px; height:110px;"> |
| 6 <div id="abspos" style="position:absolute; width:50px; height:25px; top:
0; right:0; background:blue;"></div> |
| 7 <br> |
| 8 <br> |
| 9 <br> |
| 10 <br> |
| 11 <br> |
| 12 </div> |
| 13 </div> |
| 14 <script src="../resources/testharness.js"></script> |
| 15 <script src="../resources/testharnessreport.js"></script> |
| 16 <script> |
| 17 test(() => { |
| 18 var lines = document.getElementById("lines"); |
| 19 var abspos = document.getElementById("abspos"); |
| 20 assert_equals(abspos.offsetLeft, 50); |
| 21 lines.style.width = "150px"; |
| 22 assert_equals(abspos.offsetLeft, 100); |
| 23 }, "Resize container with right-aligned abspos and widows"); |
| 24 </script> |
OLD | NEW |