OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 table { | |
4 font-size: 16px; | |
5 } | |
6 td, th { | 3 td, th { |
7 background-color: #ddd; | 4 background-color: #ddd; |
8 border: 1px solid black; | 5 border: 1px solid black; |
9 } | 6 } |
10 tr { | 7 thead, tr { |
11 break-inside: avoid; | 8 break-inside: avoid; |
12 } | 9 } |
13 </style> | 10 </style> |
14 <p>crbug.com/624814: A row positioned naturally at the top of a column should mo
ve below any repeating table header.</p> | 11 <p>crbug.com/642814: A row positioned naturally at the top of a column should mo
ve below any repeating table header.</p> |
15 <div style="columns:3; line-height: 18px; column-fill: auto; height:91px; backgr
ound-color: yellow; position: relative;"> | 12 <div style="columns:3; line-height: 18px; column-fill: auto; height:72px; backgr
ound-color: yellow; position:relative;"> |
16 <br> | |
17 <table> | 13 <table> |
18 <tr> | 14 <tr> |
19 <th>Col 1</th> | 15 <th>Col 1</th> |
20 <th>Col 2</th> | 16 <th>Col 2</th> |
21 </tr> | 17 </tr> |
22 <tr><td>Te</td><td>xt</td></tr> | 18 <tr><td>Te</td><td>xt</td></tr> |
23 <tr><td>Te</td><td>xt</td></tr> | 19 <tr><td>Te</td><td>xt</td></tr> |
24 </table> | 20 </table> |
25 <table style="position: absolute; top: 0px"> | 21 <table style="position: absolute; top: 0px"> |
26 <tr> | 22 <tr> |
27 <th>Col 1</th> | 23 <th>Col 1</th> |
28 <th>Col 2</th> | 24 <th>Col 2</th> |
29 </tr> | 25 </tr> |
30 <tr><td>Te</td><td>xt</td></tr> | 26 <tr><td>Te</td><td>xt</td></tr> |
| 27 <tr><td>Te</td><td>xt</td></tr> |
31 </table> | 28 </table> |
32 </div> | 29 </div> |
33 | 30 |
OLD | NEW |