Status: PASS | Duration: 58ms | Subtests: 10/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)
| Subtest | Status | Message |
|---|---|---|
| e.style['stop-color'] = "auto" should not set the property value | PASS | |
| e.style['stop-color'] = "123" should not set the property value | PASS | |
| e.style['stop-color'] = "#12" should not set the property value | PASS | |
| e.style['stop-color'] = "#123456789" should not set the property value | PASS | |
| e.style['stop-color'] = "rgb" should not set the property value | PASS | |
| e.style['stop-color'] = "rgb(1)" should not set the property value | PASS | |
| e.style['stop-color'] = "rgb(1,2,3,4,5)" should not set the property value | PASS | |
| e.style['stop-color'] = "hsla(1,2,3,4,5)" should not set the property value | PASS | |
| e.style['stop-color'] = "rgb(10%, 20, 30%)" should not set the property value | PASS | |
| e.style['stop-color'] = "rgba(-2, 300, 400%, -0.5)" should not set the property value | PASS |
/svg/pservers/parsing/stop-color-invalid.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 invalid 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_invalid_value("stop-color", "auto"); test_invalid_value("stop-color", "123"); test_invalid_value("stop-color", "#12"); test_invalid_value("stop-color", "#123456789"); test_invalid_value("stop-color", "rgb"); test_invalid_value("stop-color", "rgb(1)"); test_invalid_value("stop-color", "rgb(1,2,3,4,5)"); test_invalid_value("stop-color", "hsla(1,2,3,4,5)"); test_invalid_value("stop-color", "rgb(10%, 20, 30%)"); test_invalid_value("stop-color", "rgba(-2, 300, 400%, -0.5)"); ]]></script> </svg>