Status: PASS | Duration: 6ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-backgrounds/background-image-table-cells-zoomed.html
<!DOCTYPE html> <html> <head> <title>CSS Background Test: A background image on table cells with collapsed borders should fill the table</title> <link rel="author" title="schenney" href="mailto:schenney@chromium.org"> <link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#the-background-image"> <link rel="match" href="reference/background-image-table-cells-zoomed-ref.html"> <style> body { zoom: 121%; } .test-table { display: table; width: 600px; border-collapse: collapse; border-spacing: 0; background-color: red; } .test-row { padding: 0px; border: 0px; display: table-row; } .test-cell { display: table-cell; padding: 0px; height: 50px; border: 0px; background: url("support/50x50-green.png"); background-size: 100% 100%; } </style> </head> <body> <div class="test-table"> <div class="test-row"> <div class="test-cell"></div> <div class="test-cell"></div> </div> </div> </body> </html>
/css/css-backgrounds/reference/background-image-table-cells-zoomed-ref.html
<!DOCTYPE html> <html> <head> <title>CSS Background Test Reference</title> <link rel="author" title="schenney" href="mailto:schenney@chromium.org"> <style> body { zoom: 121%; } .test-table { display: table; width: 600px; border-collapse: collapse; border-spacing: 0; background-color: green; } .test-row { display: table-row; padding: 0px; } .test-cell { display: table-cell; padding: 0px; height: 50px; border: 0; } </style> </head> <body> <div class="test-table"> <div class="test-row"> <div class="test-cell"></div> <div class="test-cell"></div> </div> </div> </body> </html>