Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/svg/styling/use-element-attr-selector-transition.tentative.html
<!DOCTYPE html> <html class="reftest-wait"> <title>SVG Test: Attribute change in template starts transition in <use> element tree</title> <link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/struct.html#UseElement"> <link rel="help" href="https://github.com/w3c/svgwg/issues/1002"> <link rel="match" href="use-element-selector-ref.html"> <style> #rect { fill: black; transition: fill 1000s steps(2, start); } [attr] > #rect { fill: lime; } </style> <svg> <use id="use_elm" xlink:href="#tmpl" /> <defs> <g id="tmpl"> <rect id="rect" width="100" height="100"></rect> </g> </defs> </svg> <script> requestAnimationFrame(() => { requestAnimationFrame(() => { tmpl.setAttribute("attr", "val"); document.documentElement.classList.remove('reftest-wait'); }); }); </script>
/svg/styling/use-element-selector-ref.html
<!DOCTYPE html> <title>SVG Test Reference</title> <svg> <rect width="100" height="100" fill="green"></rect> </svg>