wpt / svg / geometry / parsing / rx-valid.svg

Status: PASS | Duration: 54ms | 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)

SubtestStatusMessage
e.style['rx'] = "auto" should set the property valuePASS
e.style['rx'] = "0" should set the property valuePASS
e.style['rx'] = "1px" should set the property valuePASS
e.style['rx'] = "calc(2em + 3ex)" should set the property valuePASS
e.style['rx'] = "4%" should set the property valuePASS
e.style['rx'] = "5vw" should set the property valuePASS

/svg/geometry/parsing/rx-valid.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="8000px">
  <title>SVG Geometry Properties: parsing rx with valid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/geometry.html#RX"/>
    <h:meta name="assert" content="rx supports the full grammar '&lt;length-percentage&gt; | auto'."/>
  </metadata>
  <g id="target"></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("rx", "auto");

test_valid_value("rx", "0", "0px");
test_valid_value("rx", "1px");
test_valid_value("rx", "calc(2em + 3ex)");
test_valid_value("rx", "4%");
test_valid_value("rx", "5vw");

  ]]></script>
</svg>