Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/pservers/parsing/stop-color-valid.svg
<title>SVG Paint Servers: parsing stop-color with valid 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_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>