break-avoidance-004.html (930B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://drafts.csswg.org/css-tables-3/#fragmentation"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 4 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 5 <style> 6 table { border-spacing: 0; } 7 td { padding: 0; break-inside: avoid; } 8 </style> 9 <div style="columns: 2; height: 100px; width: 100px; gap: 0; background: red; position: relative;"> 10 <table> 11 <tbody><tr><td style="height: 50px; width: 50px; background: green;"></td></tr></tbody> <!-- We should have a column break after this section. --> 12 <tbody><tr><td style="height: 50px; width: 50px; background: green;"></td></tr></tbody> 13 <tbody><tr><td style="height: 50px; width: 50px; background: green; break-before: avoid;"></td></tr></tbody> 14 </table> 15 <div style="position: absolute; height: 50px; width: 50px; bottom: 0; left: 0; background: green;"></div> 16 </div>