Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/pservers/parsing/stop-color-invalid.svg - WPT Dashboard Interop Dashboard
<title>SVG Paint Servers: parsing stop-color with invalid values</title>
<metadata>
</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>