Status: PASS | Duration: 55ms | Subtests: 6/6 | 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 |
|---|---|---|
| Property stroke-opacity value '-1' | PASS | |
| Property stroke-opacity value '0.5' | PASS | |
| Property stroke-opacity value '3' | PASS | |
| Property stroke-opacity value '-100%' | PASS | |
| Property stroke-opacity value '50%' | PASS | |
| Property stroke-opacity value '300%' | PASS |
/svg/painting/parsing/stroke-opacity-computed.svg
<?xml version="1.0" encoding="UTF-8"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:h="http://www.w3.org/1999/xhtml" width="800px" height="800px"> <title>SVG Painting: getComputedStyle().strokeOpacity</title> <metadata> <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/painting.html#StrokeOpacityProperty"/> <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>