Status: PASS | Duration: 57ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi
/svg/painting/reftests/paint-context-005.svg
<svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/1999/xhtml"> <g id="testmeta"> <title>Paint: 'context-fill' and 'context-stroke' invalidation test</title> <html:link rel="author" title="Stefan Zager" href="mailto:szager@chromium.org"/> <html:link rel="help" href="https://www.w3.org/TR/SVG2/painting.html#SpecifyingPaint"/> </g> <html:script src="/resources/testharness.js"/> <html:script src="/resources/testharnessreport.js"/> <defs> <rect id="rectangle" width="120" height="120" style="fill:context-fill;stroke:context-stroke" /> </defs> <g id="test-body-content" font-size="16" style="fill:blue;stroke:lime;stroke-width:15px"> <use xlink:href="#rectangle" transform="translate(60,120)"/> <use id="use" xlink:href="#rectangle" transform="translate(300,120)" style="fill:green;stroke:lightblue"/> </g> <html:script> async_test(t => { onload = () => { requestAnimationFrame(() => { requestAnimationFrame(() => { let use = document.getElementById("use"); use.style = "fill:lightblue;stroke:green"; requestAnimationFrame(() => { t.done() }); })}); }; }); </html:script> </svg>