OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <style> | 2 <style> |
3 table { | 3 table { |
| 4 font-size: 16px; |
4 border-collapse: collapse; | 5 border-collapse: collapse; |
5 } | 6 } |
6 td, th { | 7 td, th { |
7 background-color: #ddd; | 8 background-color: #ddd; |
8 border: 1px solid black; | 9 border: 1px solid black; |
9 } | 10 } |
10 thead, tfoot, tr { | 11 thead, tr , tfoot{ |
11 break-inside: avoid; | 12 break-inside: avoid; |
12 } | 13 } |
13 </style> | 14 </style> |
14 <p>crbug.com/675453: Content of a cell that spans multiple pages should avoid th
e repeating header.</p> | 15 <p>crbug.com/656232: Rows and headers should repeat correctly in the presence of
a top caption.</p> |
15 <div style="columns:3; line-height: 20px; column-fill: auto; height:100px; backg
round-color: yellow;"> | 16 <div style="columns:3; line-height: 18px; column-fill: auto; height:91px; backgr
ound-color: yellow;"> |
16 <table> | 17 <table> |
| 18 <caption>Caption</caption> |
17 <thead> | 19 <thead> |
18 <tr> | 20 <tr> |
19 <th>Col 1</th> | 21 <th>Col 1</th> |
20 <th>Col 2</th> | 22 <th>Col 2</th> |
21 </tr> | 23 </tr> |
22 </thead> | 24 </thead> |
23 <tbody> | 25 <tbody> |
24 <tr><td>Te</td><td>xt</td></tr> | 26 <tr><td>Te</td><td>xt</td></tr> |
25 <tr><td>Te</td><td>xt</td></tr> | 27 <tr><td>Te</td><td>xt</td></tr> |
26 <tr><td> | 28 <tr><td>Te</td><td>xt</td></tr> |
27 Te<br> | 29 <tr><td>Te</td><td>xt</td></tr> |
28 Te<br> | 30 <tr><td>Te</td><td>xt</td></tr> |
29 Te<br> | |
30 Te<br> | |
31 Te<br> | |
32 Te<br> | |
33 </td> | |
34 <td> | |
35 xt<br> | |
36 xt<br> | |
37 xt<br> | |
38 xt<br> | |
39 xt<br> | |
40 xt<br> | |
41 </td></tr> | |
42 </tbody> | 31 </tbody> |
43 <tfoot> | 32 <tfoot> |
44 <tr> | 33 <tr> |
45 <th>Ft 1</th> | 34 <th>Ft 1</th> |
46 <th>Ft 2</th> | 35 <th>Ft 2</th> |
47 </tr> | 36 </tr> |
48 </tfoot> | 37 </tfoot> |
49 </table> | 38 </table> |
50 </div> | 39 </div> |
51 | 40 |
OLD | NEW |