Status: FAIL | Duration: 9ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-masking/mask-image/mask-image-svg-viewport-changed.html
<!doctype html> <title>Change of viewport affecting mask content</title> <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-mask-image"> <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#svg-masks"> <link rel="match" href="../clip-path/reference/green-100x100.html"> <div id="container" style="width: 0%"> <svg style="width: 100%"> <mask id="mask"> <rect width="100%" height="100%" fill="white"/> </mask> <rect width="100" height="100" fill="red"/> <rect width="100" height="100" fill="green" mask="url(#mask)"/> </svg> </div> <script> document.body.offsetTop; document.getElementById('container').style.width = '100%'; </script>
/css/css-masking/clip-path/reference/green-100x100.html
<!DOCTYPE html> <div style="width: 100px; height: 100px; background-color: green"></div>