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/painting/parsing/stroke-opacity-computed.svg
<?xml version="1.0" encoding="UTF-8"?>
width="800px" height="800px">
<title>SVG Painting: getComputedStyle().strokeOpacity</title>
<metadata>
<h:meta name="assert" content="stroke-opacity computed value is clamped to the range [0,1]."/>
</metadata>
<g id="target"></g>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<h:script src="/css/support/computed-testcommon.js"/>
<script><![CDATA[
test_computed_value("stroke-opacity", "-1", "0");
test_computed_value("stroke-opacity", "0.5");
test_computed_value("stroke-opacity", "3", "1");
test_computed_value("stroke-opacity", "-100%", "0");
test_computed_value("stroke-opacity", "50%", "0.5");
test_computed_value("stroke-opacity", "300%", "1");
]]></script>
</svg>