wpt / svg / geometry / parsing / cy-attribute-valid.svg

Status: FAIL | Duration: 60ms | 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
cy="0" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object
cy="5" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object
cy="-10" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object
cy="5px" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object
cy="-10px" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object
cy="5%" should be a valid attribute valueFAILcannot convert 'null' or 'undefined' to object

/svg/geometry/parsing/cy-attribute-valid.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 cy presentation attribute with valid values</title>
  <metadata>
    <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/geometry.html#CY"/>
    <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 cy presentation attribute supports '&lt;length-percentage&gt; | &lt;number&gt;' (unlike the cy CSS property, which does not accept a bare number)."/>
  </metadata>
  <circle id="target"/>
  <h:script src="/resources/testharness.js"/>
  <h:script src="/resources/testharnessreport.js"/>
  <h:script src="support/attribute-testcommon.js"/>
  <script><![CDATA[

test_valid_attribute_value("cy", "0", 0);
test_valid_attribute_value("cy", "5", 5);
test_valid_attribute_value("cy", "-10", -10);
test_valid_attribute_value("cy", "5px", 5);
test_valid_attribute_value("cy", "-10px", -10);
test_valid_attribute_value("cy", "5%", 40, "5%");

  ]]></script>
</svg>