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