wpt / svg / text / parsing / text-anchor-invalid.svg

Status: PASS | Duration: 47ms | Subtests: 2/2 | 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['text-anchor'] = "auto" should not set the property valuePASS
e.style['text-anchor'] = "start middle" should not set the property valuePASS

/svg/text/parsing/text-anchor-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 Text: parsing text-anchor with invalid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/text.html#TextAnchorProperty"/>
    <h:meta name="assert" content="text-anchor supports only the grammar 'start | middle | end'."/>
  </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("text-anchor", "auto");
test_invalid_value("text-anchor", "start middle");

  ]]></script>
</svg>