wpt / svg / geometry / parsing / r-invalid.svg

Status: PASS | Duration: 61ms | Subtests: 5/5 | Open test on wpt.live | wpt.fyi

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

SubtestStatusMessage
e.style['r'] = "10" should not set the property valuePASS
e.style['r'] = "auto" should not set the property valuePASS
e.style['r'] = "10px 20px" should not set the property valuePASS
e.style['r'] = "-1px" should not set the property valuePASS
e.style['r'] = "-10%" should not set the property valuePASS

/svg/geometry/parsing/r-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="8000px">
  <title>SVG Geometry Properties: parsing r with invalid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/geometry.html#R"/>
    <h:meta name="assert" content="r supports only the grammar '&lt;length-percentage&gt;'."/>
  </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_invalid_value("r", "10");
test_invalid_value("r", "auto");
test_invalid_value("r", "10px 20px");
test_invalid_value("r", "-1px");
test_invalid_value("r", "-10%");

  ]]></script>
</svg>