Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-transforms/transform-box/fill-box-mutation-001.html
<!DOCTYPE html> <html class="reftest-wait"> <title>transform-box: fill-box, shape mutated</title> <link rel="match" href="reference/greensquare200x200.html"> <link rel="help" href="https://drafts.csswg.org/css-transforms/#transform-box"> <style> #target { transform-box: fill-box; transform: translate(-50%, 0); } </style> <p>There should be a green 200x200 rectangle below, and no red.</p> <svg width="400" height="200"> <rect width="200" height="200" fill="red"/> <rect id="target" x="100" width="100" height="200" fill="green"/> </svg> <script> requestAnimationFrame(function() { requestAnimationFrame(function() { document.querySelector('#target').setAttribute('width', 200); document.documentElement.classList.remove('reftest-wait'); }); }); </script>
/css/css-transforms/transform-box/reference/greensquare200x200.html
<!DOCTYPE html> <p>There should be a green 200x200 rectangle below, and no red.</p> <div style="width: 200px; height: 200px; background-color: green"></div>