Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

SVG Preview (Scaled)

Preview of https://raw.githubusercontent.com/mozilla-firefox/firefox/main/testing/web-platform/tests/svg/geometry/parsing/height-attribute-invalid.svg
<?xml version="1.0" encoding="UTF-8"?>
width="800px" height="800px">
<title>SVG Geometry Properties: parsing the height presentation attribute with invalid values</title>
<metadata>
<h:meta name="assert" content="the height presentation attribute rejects negative values and values outside '&lt;length-percentage&gt; | &lt;number&gt;', 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>