OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/check-layout.js"></script> |
| 3 <p>Test that space is reserved for the top margin of a float that is pushed to t
he next column. In |
| 4 this test, there are two reasons why the float needs to be pushed to next co
lumn: It's |
| 5 unbreakable, and its first line doesn't fit in the previous column.</p> |
| 6 <p>There should be a blue rectangle below.</p> |
| 7 <div id="test" style="position:relative; -webkit-columns:3; -webkit-column-gap:0
; column-fill:auto; width:150px; height:90px; line-height:20px;"> |
| 8 <div style="margin-top:5px; margin-bottom:15px; height:40px; background:blue
;"></div> |
| 9 <br> |
| 10 <div data-offset-y="5" style="float:left; width:100%; margin-top:5px; -webki
t-column-break-inside:avoid; background:blue;"> |
| 11 <br><br> |
| 12 </div> |
| 13 </div> |
| 14 <script> |
| 15 checkLayout("#test"); |
| 16 </script> |
OLD | NEW |