OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 .multicol { float:left; position:relative; columns:2; column-fill:auto; widt
h:3em; height:40px; line-height:20px; } |
| 4 </style> |
| 5 <div class="multicol"> |
| 6 <div id="line" style="margin-top:-10px;"><br></div> |
| 7 </div> |
| 8 <div class="multicol"> |
| 9 <div id="lineAndBorder" style="margin-top:-10px; border-top:5px solid;"><br>
</div> |
| 10 </div> |
| 11 <div class="multicol"> |
| 12 <div id="lineAtBoundaryAndBorder" style="margin-top:-10px; border-top:10px s
olid;"><br></div> |
| 13 </div> |
| 14 <div class="multicol"> |
| 15 <div style="position:relative;"> |
| 16 <div id="absPos" style="position:absolute; top:-10px;"> |
| 17 <div id="lineInAbsPos"><br></div> |
| 18 </div> |
| 19 </div> |
| 20 </div> |
| 21 <div class="multicol"> |
| 22 <div style="margin-top:-15px; border-top:5px solid;"> |
| 23 <div id="lineInNestedBlock" style="border-top:15px solid;"><br></div> |
| 24 </div> |
| 25 </div> |
| 26 <div class="multicol"> |
| 27 <div style="margin-top:-10px;" id="lineAfterFloat"> |
| 28 <div style="float:left; width:100%; height:20px;"></div> |
| 29 <br> |
| 30 </div> |
| 31 </div> |
| 32 <div class="multicol"> |
| 33 <div id="unsplittableBlock" style="margin-top:-10px; height:20px; break-insi
de:avoid;"></div> |
| 34 </div> |
| 35 <div class="multicol"> |
| 36 <div id="unsplittableFloat" style="float:left; margin-top:-10px; height:20px
; break-inside:avoid;"></div> |
| 37 </div> |
| 38 <div class="multicol"> |
| 39 <div id="unsplittableAbspos" style="position:absolute; top:-10px; height:20p
x; break-inside:avoid;"></div> |
| 40 </div> |
| 41 <div class="multicol"> |
| 42 <img id="image" style="display:block; margin-top:-10px; height:20px;"> |
| 43 </div> |
| 44 <div style="clear:both;"></div> |
| 45 <script src="../resources/testharness.js"></script> |
| 46 <script src="../resources/testharnessreport.js"></script> |
| 47 <script> |
| 48 function pos(elm) { return document.getElementById(elm).offsetTop; } |
| 49 generate_tests(assert_equals, [ |
| 50 [ "line", pos("line"), -10 ], |
| 51 [ "lineAndBorder", pos("lineAndBorder"), -10 ], |
| 52 [ "lineAtBoundaryAndBorder", pos("lineAtBoundaryAndBorder"), -10 ], |
| 53 [ "lineInAbspos", pos("lineInAbsPos"), 0 ], |
| 54 [ "abspos", pos("absPos"), -10 ], |
| 55 [ "lineInNestedBlock", pos("lineInNestedBlock"), -10 ], |
| 56 [ "lineAfterFloat", pos("lineAfterFloat"), -10 ], |
| 57 [ "unsplittableBlock", pos("unsplittableBlock"), -10 ], |
| 58 [ "unsplittableFloat", pos("unsplittableFloat"), -10 ], |
| 59 [ "unsplittableAbspos", pos("unsplittableAbspos"), -10 ], |
| 60 [ "image", pos("image"), -10 ], |
| 61 ]); |
| 62 </script> |
OLD | NEW |