wpt / svg / pservers / reftests / stop-color-currentcolor-dynamic-001.svg

Status: FAIL | Duration: 54ms | Subtests: 0/1 | Open test on wpt.live | wpt.fyi

/svg/pservers/reftests/stop-color-currentcolor-dynamic-001.svg

<svg xmlns="http://www.w3.org/2000/svg" xmlns:html="http://www.w3.org/1999/xhtml"
     style="color: red">
  <title>stop-color: Dynamically changing 'color' for a gradient with a stop with 'currentcolor'</title>
  <html:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/pservers.html#StopColorProperty"/>
  <html:link rel="match" href="reference/green-100x100.svg"/>
  <html:meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-2500"/>
  <linearGradient id="g">
    <stop stop-color="currentcolor"/>
  </linearGradient>
  <rect width="50" height="100" fill="url(#g)"/>
  <rect width="50" height="100" x="50" fill="currentcolor"/>
  <script>
    <![CDATA[
      let root = document.querySelector(':root');
      root.getBoundingClientRect();  // Force layout
      root.style.color = 'green';
    ]]>
  </script>
</svg>