OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 td, th { | 3 td, th { |
4 background-color: #ddd; | 4 background-color: #ddd; |
5 border: 1px solid black; | 5 border: 1px solid black; |
6 } | 6 } |
7 thead, tr { | 7 tr { |
8 break-inside: avoid; | 8 break-inside: avoid; |
9 } | 9 } |
10 </style> | 10 </style> |
11 <p>crbug.com/642814: A row positioned naturally at the top of a column should mo
ve below any repeating table header.</p> | 11 <p>crbug.com/656232: A row positioned naturally at the top of a column should mo
ve below any repeating table header.</p> |
12 <div style="columns:3; line-height: 18px; column-fill: auto; height:72px; backgr
ound-color: yellow; position:relative;"> | 12 <div style="columns:3; line-height: 18px; column-fill: auto; height:110px; backg
round-color: yellow; position:relative;"> |
13 <table> | 13 <table> |
14 <tr> | 14 <tr> |
15 <th>Col 1</th> | 15 <th>Col 1</th> |
16 <th>Col 2</th> | 16 <th>Col 2</th> |
17 </tr> | 17 </tr> |
18 <tr><td>Te</td><td>xt</td></tr> | 18 <tr><td>Te</td><td>xt</td></tr> |
19 <tr><td>Te</td><td>xt</td></tr> | 19 <tr><td>Te</td><td>xt</td></tr> |
| 20 <tr> |
| 21 <th>Ft 1</th> |
| 22 <th>Ft 2</th> |
| 23 </tr> |
20 </table> | 24 </table> |
| 25 <br> |
21 <table style="position: absolute; top: 0px"> | 26 <table style="position: absolute; top: 0px"> |
22 <tr> | 27 <tr> |
23 <th>Col 1</th> | 28 <th>Col 1</th> |
| 29 <th>Col 2</th> |
| 30 </tr> |
| 31 <tr><td>Te</td><td>xt</td></tr> |
| 32 <tr><td>Te</td><td>xt</td></tr> |
| 33 <tr> |
| 34 <th>Ft 1</th> |
| 35 <th>Ft 2</th> |
| 36 </tr> |
| 37 </table> |
| 38 <br><br><br><br><br><br><br><br><br><br><br> |
| 39 <table style="position: absolute; top: 0px"> |
| 40 <tr> |
| 41 <th>Col 1</th> |
24 <th>Col 2</th> | 42 <th>Col 2</th> |
25 </tr> | 43 </tr> |
26 <tr><td>Te</td><td>xt</td></tr> | 44 <tr><td>Te</td><td>xt</td></tr> |
27 <tr><td>Te</td><td>xt</td></tr> | 45 <tr><td>Te</td><td>xt</td></tr> |
| 46 <tr> |
| 47 <th>Ft 1</th> |
| 48 <th>Ft 2</th> |
| 49 </tr> |
28 </table> | 50 </table> |
29 </div> | 51 </div> |
30 | 52 |
OLD | NEW |