wpt / svg / geometry / parsing / rx-attribute-invalid.svg

Status: FAIL | Duration: 56ms | Subtests: 0/6 | Open test on wpt.live | wpt.fyi

Data from commit:
96ff533 Remove hidden nodes from the acccessibility tree (#823) (2026-09-07)

SubtestStatusMessage
rx="-10" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object
rx="-10px" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object
rx="-10%" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object
rx="none" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object
rx="10px 20px" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object
rx="garbage" should be an invalid attribute value (ignored)FAILcannot convert 'null' or 'undefined' to object

/svg/geometry/parsing/rx-attribute-invalid.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 Geometry Properties: parsing the rx presentation attribute with invalid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/geometry.html#RX"/>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/types.html#presentation-attribute-css-value"/>
    <h:link rel="help" href="https://github.com/web-platform-tests/wpt/issues/61017"/>
    <h:meta name="assert" content="the rx presentation attribute rejects negative values and values outside '&lt;length-percentage&gt; | &lt;number&gt; | auto', keeping the initial computed value of auto. A negative value for rx is invalid and must be ignored per SVG2 geometry.html#RX."/>
  </metadata>
  <rect id="target"/>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <h:script src="support/attribute-testcommon.js"/>
  <script><![CDATA[

test_invalid_attribute_value("rx", "-10", 0, "auto");
test_invalid_attribute_value("rx", "-10px", 0, "auto");
test_invalid_attribute_value("rx", "-10%", 0, "auto");
test_invalid_attribute_value("rx", "none", 0, "auto");
test_invalid_attribute_value("rx", "10px 20px", 0, "auto");
test_invalid_attribute_value("rx", "garbage", 0, "auto");

  ]]></script>
</svg>