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/path/parsing/path-length-computed.tentative.svg
<?xml version="1.0" encoding="UTF-8"?>
<title>SVG Path Properties: getComputedStyle().pathLength</title>
<metadata>
</metadata>
<path id="target"/>
<h:script src="/resources/testharness.js"/>
<h:script src="/resources/testharnessreport.js"/>
<h:script src="/css/support/computed-testcommon.js"/>
<script><![CDATA[
test_computed_value("path-length", "none");
test_computed_value("path-length", "0");
test_computed_value("path-length", "0.5");
test_computed_value("path-length", "1");
test_computed_value("path-length", "100");
test_computed_value("path-length", "3.14");
test_computed_value("path-length", "calc(1 + 2)", "3");
test_computed_value("path-length", "calc(-1)", "0");
]]></script>
</svg>