Status: FAIL | Duration: 14ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-tables/tentative/paint/background-image-column-collapsed.html
<!DOCTYPE html> <title>Table collapsed column background image geometry</title> <link rel="author" title="Aleks Totic" href="atotic@chromium.org" /> <link rel="help" href="https://www.w3.org/TR/css-tables-3/#drawing-backgrounds-and-borders" /> <link rel="match" href="background-image-column-collapsed-ref.html" /> <style> body { --peek: LightGreen; } .bg { background-color: var(--peek); background-image: linear-gradient(90deg, orange 0px, orange 10px, gainsboro 3px, gainsboro 25%, rgba(160,160,160,0.5) 25%, rgba(160,160,160,0.5) 50%, silver 50%, silver 75%, darkgray 75%, darkgray 170px, blue 170px); background-repeat: no-repeat; } main * { box-sizing: border-box; } main table { border-spacing: 10px; border: 10px solid transparent; padding: 10px; border-collapse: collapse; } main table:hover { border: 10px solid yellow; } main td { width: 50px; height: 50px; padding: 0px; } </style> <body> <main> <table> <col class="bg"> <col class="bg"> <col> <colgroup class="bg" span="2"> <tr> <td rowspan=4></td> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> <tr> <td rowspan=2 colspan=2></td> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr> </table> </main> </body>
/css/css-tables/tentative/paint/background-image-column-collapsed-ref.html
<!doctype html> <style> body { --peek: LightGreen; } .bg { background-color: var(--peek); background-image: linear-gradient(90deg, orange 0px, orange 10px, gainsboro 3px, gainsboro 25%, rgba(160,160,160,0.5) 25%, rgba(160,160,160,0.5) 50%, silver 50%, silver 75%, darkgray 75%, darkgray 170px, blue 170px); background-repeat: no-repeat; background-size: 50px 200px; } main * { box-sizing: border-box; } .td { width: 50px; height: 50px; position:absolute; } </style> <main> <div style="position: relative;border: 10px solid transparent; width:210px; height: 210px"> <div class="td bg" style="top:-5px;left:-5px;height:200px"></div> <div class="td bg" style="top:-5px;left:45px;height:200px"></div> <div class="td" style="background:var(--peek); height:100px; left:95px;top:45px"></div> <div class="td bg" style="top:-5px;left:145px;height:200px;width:100px;background-size: 100px 200px"></div> </div> </main>