Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-contain/content-visibility/content-visibility-094.html
<!doctype HTML> <html class="reftest-wait"> <meta charset="utf8"> <title>Content Visibility: hidden effect on table types</title> <link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com"> <link rel="help" href="https://drafts.csswg.org/css-contain/#content-visibility"> <link rel="match" href="content-visibility-094-ref.html"> <meta name="assert" content="content-visibility: hidden effect on table types"> <script src="/common/reftest-wait.js"></script> <style> table { width: 150px; height: 150px; background: lightblue; } .hidden { content-visibility: hidden; } </style> <table id=table> <caption id=caption> <div>Test fails if this text is visible.</div> </caption> <tr id=tr> <td id=td> <div>Test passes if this text is visible.</div> </td> </tr> </table> <script> function runTest() { document.getElementById("table").classList.add("hidden"); document.getElementById("tr").classList.add("hidden"); document.getElementById("caption").classList.add("hidden"); requestAnimationFrame(takeScreenshot); } window.onload = () => requestAnimationFrame(runTest); </script> </html>
/css/css-contain/content-visibility/content-visibility-094-ref.html
<!doctype HTML> <html> <meta charset="utf8"> <title>Content Visibility: hidden effect on table types (reference)</title> <link rel="author" title="Rob Buis" href="mailto:rbuis@igalia.com"> <style> table { width: 150px; height: 150px; background: lightblue; } </style> <table id=table> <tr id=tr> <td id=td> <div>Test passes if this text is visible.</div> </td> </tr> </table> </html>