wpt / svg / pservers / parsing / stop-color-valid.svg

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

Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)

SubtestStatusMessage
e.style['stop-color'] = "currentcolor" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "white" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "transparent" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "rgb(255, 255, 255)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "#ffffff" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "rgba(255, 255, 255, 1.0)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "rgba(255, 255, 255, 0.4)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "hsl(0deg, 100%, 100%)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "hsla(0deg, 100%, 100%, 1.0)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""
e.style['stop-color'] = "hsla(0deg, 100%, 100%, 0.4)" should set the property valueFAILassert_not_equals: property should be set got disallowed value ""

/svg/pservers/parsing/stop-color-valid.svg

<svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml">
  <title>SVG Paint Servers: parsing stop-color with valid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/pservers.html#StopColorProperty"/>
  </metadata>
  <g id="target" style="color: blue"></g>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <h:script src="/css/support/parsing-testcommon.js"/>
  <script><![CDATA[

test_valid_value("stop-color", "currentcolor");
test_valid_value("stop-color", "white");
test_valid_value("stop-color", "transparent");
test_valid_value("stop-color", "rgb(255, 255, 255)");
test_valid_value("stop-color", "#ffffff", "rgb(255, 255, 255)");
test_valid_value("stop-color", "rgba(255, 255, 255, 1.0)", "rgb(255, 255, 255)");
test_valid_value("stop-color", "rgba(255, 255, 255, 0.4)");
test_valid_value("stop-color", "hsl(0deg, 100%, 100%)", "rgb(255, 255, 255)");
test_valid_value("stop-color", "hsla(0deg, 100%, 100%, 1.0)", "rgb(255, 255, 255)");
test_valid_value("stop-color", "hsla(0deg, 100%, 100%, 0.4)", "rgba(255, 255, 255, 0.4)");

  ]]></script>
</svg>