OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <style> |
| 3 thead, tr { break-inside:avoid; } |
| 4 </style> |
| 5 <p>There should be hotpink, lime, cyan, yellow and blue squares below, stacked v
ertically.</p> |
| 6 <div id="container" style="columns:5; column-fill:auto; height:85px; line-height
:40px;"> |
| 7 <table cellspacing="0" cellpadding="0"> |
| 8 <col style="width:40px;"> |
| 9 <thead> |
| 10 <tr> |
| 11 <td><br></td> |
| 12 </tr> |
| 13 </thead> |
| 14 <tbody> |
| 15 <tr style="background:hotpink;" data-offset-y="40" data-expected-hei
ght="40"> |
| 16 <td><br></td> |
| 17 </tr> |
| 18 <tr style="background:lime;" data-offset-y="80" data-expected-height
="40"> |
| 19 <td><br></td> |
| 20 </tr> |
| 21 <tr style="background:cyan;" data-offset-y="120" data-expected-heigh
t="40"> |
| 22 <td><br></td> |
| 23 </tr> |
| 24 <tr style="background:yellow;" data-offset-y="160" data-expected-hei
ght="40"> |
| 25 <td><br></td> |
| 26 </tr> |
| 27 <tr style="background:blue;" data-offset-y="200" data-expected-heigh
t="40"> |
| 28 <td><br></td> |
| 29 </tr> |
| 30 </tbody> |
| 31 </table> |
| 32 </div> |
| 33 <script src="../resources/check-layout.js"></script> |
| 34 <script> |
| 35 document.body.offsetTop; |
| 36 document.getElementById("container").style.columns = "auto"; |
| 37 document.getElementById("container").style.height = "auto"; |
| 38 checkLayout("#container"); |
| 39 </script> |
OLD | NEW |