Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/shapes/reftests/pathlength-003.svg - WPT Dashboard Interop Dashboard
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
<g id="testmeta">
<title>Test of 'pathLength' on shapes.</title>
<html:link rel="author"
title="Tavmjong Bah"
<html:link rel="help"
<html:link rel="match" href="pathlength-003-ref.svg" />
</g>
<style id="test-font" type="text/css">
/* Standard Font (if needed). */
@font-face {
font-family: FreeSans;
src: url("../fonts/FreeSans.woff") format("woff");
}
text {
font-family: FreeSans, sans-serif;
text-anchor: middle;
fill: black;
}
#title {
font-size: 24px;
}
.label {
font-size: 18px;
}
</style>
<g id="test-body-content" style="fill:none;stroke:black;stroke-width:1px">
<circle id="circle1" cx="120" cy="240" r="100"/>
<circle id="circle2" cx="360" cy="240" r="100" pathLength="4"/>
<text><textPath xlink:href="#circle1" startOffset="471.8" style="font-size:24px;stroke:none">Some text on a circle!</textPath></text>
<text><textPath xlink:href="#circle2" startOffset="3" style="font-size:24px;stroke:none">Some text on a circle!</textPath></text>
</g>
</svg>