Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-tables/table-as-item-cell-percentage-002.html
<!DOCTYPE html> <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> <link rel="help" href="https://drafts.csswg.org/css-tables-3/#computing-the-table-height"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1917028"> <link rel="match" href="../reference/ref-filled-green-100px-square-only.html"> <meta name="assert" content="The test verifies that the table's specified height matches its final main size, and the table cells do not re-resolve their percentage heights based on the table's height."> <style> .flex { display: flex; flex-direction: column; } table { border-spacing: 0; width: 100px; height: 100px; flex: none; background: green; } tr { height: 50px; } td { height: 100%; } </style> <p>Test passes if there is a filled green square.</p> <div class="flex"> <table> <thead><tr><td></td></tr></thead> <tbody><tr><td></td></tr></tbody> </table> </div>
/css/reference/ref-filled-green-100px-square-only.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org"> <p>Test passes if there is a filled green square.</p> <div style="width:100px; height:100px; background:green;"></div>