OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <p>Below there should be a black square surrounded by a rather thick |
| 3 (10px wide) hotpink border on all sides.</p> |
| 4 <div style="columns:2; column-fill:auto; height:300px;"> |
| 5 <div style="height:10px;"></div> |
| 6 <table id="table" style="border-spacing:10px; width:120px; background:hotpin
k;"> |
| 7 <thead style="break-inside:avoid;"> |
| 8 <tr> |
| 9 <td id="cell" style="padding:0;"> |
| 10 <div id="pete" style="width:99px; height:100px; background:b
lack;"></div> |
| 11 </td> |
| 12 </tr> |
| 13 </thead> |
| 14 </table> |
| 15 </div> |
| 16 <script> |
| 17 </script> |
| 18 <script src="../resources/testharness.js"></script> |
| 19 <script src="../resources/testharnessreport.js"></script> |
| 20 <script> |
| 21 test(() => { |
| 22 document.body.offsetTop; |
| 23 document.getElementById("pete").style.width = "100px"; |
| 24 assert_equals(document.getElementById("cell").offsetTop, 10); |
| 25 assert_equals(document.getElementById("table").offsetHeight, 120); |
| 26 }, "THEAD near the top of the first fragmentainer"); |
| 27 </script> |
OLD | NEW |