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/distance/path-length-css-zero.tentative.svg
<title>CSS path-length property set to zero</title>
<metadata>
<html:link rel="author" title="Virali Purbey" href="mailto:viralipurbey@microsoft.com"/>
<html:link rel="match" href="path-length-css-zero-ref.tentative.svg"/>
</metadata>
<style>
path { path-length: 0; }
</style>
<!-- With path-length:0, the dash scaling factor becomes infinity,
so stroke-dasharray="1 1" is scaled to an infinite dash length,
resulting in a solid stroke. -->
<path d="M10,10 L110,10 L110,110 L10,110Z" stroke-dasharray="1 1"
fill="none" stroke="black" stroke-width="10"/>
</svg>