wpt / svg / painting / parsing / marker-mid-computed.svg

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

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

SubtestStatusMessage
Property marker-mid value 'none'FAILassert_true: marker-mid doesn't seem to be supported in the computed style expected true got false
Property marker-mid value 'url("https://example.com/")'FAILassert_true: marker-mid doesn't seem to be supported in the computed style expected true got false
url values are made absoluteFAILFailed to parse URL: relative URL without a base

/svg/painting/parsing/marker-mid-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().markerMid</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/painting.html#MarkerMidProperty"/>
    <h:meta name="assert" content="marker-mid computed value is as specified, with url values absolute."/>
  </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("marker-mid", "none");
test_computed_value("marker-mid", 'url("https://example.com/")');

test(() => {
  const target = document.getElementById('target');
  target.style['marker-mid'] = 'url("a.b#c")';
  const result = getComputedStyle(target)['marker-mid'];
  const resolved = new URL("a.b#c", document.URL).href;
  assert_equals(result, 'url("' + resolved + '")');
}, 'url values are made absolute');

  ]]></script>
</svg>