Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/painting/reftests/percentage-attribute.svg - WPT Dashboard Interop Dashboard
<?xml version="1.0" encoding="utf-8"?>
<svg id="svg-root"
width="310" height="170" viewBox="0, 0, 620, 340"
<title>Percentages in stroke dimensions</title>
<html:link rel="match" href="percentage-ref.svg" />
<style>
rect {
fill: none;
stroke: blue;
}
</style>
<rect x="62" y="68" width="434" height="204"
stroke-width="10%" stroke-dasharray="20% 30%" stroke-dashoffset="-10%" />
</svg>