Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://raw.githubusercontent.com/mozilla-firefox/firefox/main/testing/web-platform/tests/svg/path/parsing/path-length-invalid.tentative.svg
<?xml version="1.0" encoding="UTF-8"?>
<title>SVG Path Properties: parsing path-length with invalid values</title>
<metadata>
<h:meta name="assert" content="path-length supports only the grammar 'none | &lt;number [0,∞]&gt;'."/>
</metadata>
<path id="target"/>
<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("path-length", "-1");
test_invalid_value("path-length", "-0.5");
test_invalid_value("path-length", "auto");
test_invalid_value("path-length", "10px");
test_invalid_value("path-length", "10%");
test_invalid_value("path-length", "1 2");
test_invalid_value("path-length", "none 1");
]]></script>
</svg>