Status: FAIL | Duration: 51ms | Subtests: 0/7 | Open test on wpt.live | wpt.fyi
Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)
| Subtest | Status | Message |
|---|---|---|
| height="-10" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="-10px" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="-10%" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="auto" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="none" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="10px 20px" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
| height="garbage" should be an invalid attribute value (ignored) | FAIL | cannot convert 'null' or 'undefined' to object |
/svg/geometry/parsing/height-attribute-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 Geometry Properties: parsing the height presentation attribute with invalid values</title> <metadata> <h:link rel="help" href="https://w3c.github.io/svgwg/svg2-draft/geometry.html#Sizing"/> <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 height presentation attribute rejects negative values and values outside '<length-percentage> | <number>', keeping the initial computed value of 0."/> </metadata> <rect id="target"/> <h:script src="/resources/testharness.js"/> <h:script src="/resources/testharnessreport.js"/> <h:script src="support/attribute-testcommon.js"/> <script><![CDATA[ test_invalid_attribute_value("height", "-10", 0, "0px"); test_invalid_attribute_value("height", "-10px", 0, "0px"); test_invalid_attribute_value("height", "-10%", 0, "0px"); test_invalid_attribute_value("height", "auto", 0, "0px"); test_invalid_attribute_value("height", "none", 0, "0px"); test_invalid_attribute_value("height", "10px 20px", 0, "0px"); test_invalid_attribute_value("height", "garbage", 0, "0px"); ]]></script> </svg>