wpt / svg / path / parsing / path-length-computed.tentative.svg

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

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

SubtestStatusMessage
Property path-length value 'none'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value '0'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value '100px'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value '10em'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value '2rem'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value 'calc(1px + 2px)'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false
Property path-length value 'calc(-1px)'FAILassert_true: path-length doesn't seem to be supported in the computed style expected true got false

/svg/path/parsing/path-length-computed.tentative.svg

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:h="http://www.w3.org/1999/xhtml">
  <title>SVG Path Properties: getComputedStyle().pathLength</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/paths.html#PathLengthProperty"/>
  </metadata>
  <path id="target"/>
  <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("path-length", "none");
test_computed_value("path-length", "0", "0px");
test_computed_value("path-length", "100px");
test_computed_value("path-length", "10em", "160px");
test_computed_value("path-length", "2rem", "32px");
test_computed_value("path-length", "calc(1px + 2px)", "3px");
test_computed_value("path-length", "calc(-1px)", "0px");

  ]]></script>
</svg>