Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>transform-box: stroke-box, stroke with dash array</title>
<link rel="match" href="reference/svgbox-rect-dasharray-ref.html">
<meta name="assert" content="A dash array does not contribute to the stroke bounding box"/>
<style>
#target {
fill: green;
stroke: black;
stroke-width: 20;
stroke-dasharray: 100 50;
stroke-dashoffset: 50;
transform-box: stroke-box;
transform-origin: 20px 0px;
transform: rotate(90deg);
}
</style>
<svg width="400" height="300">
<rect id="target" width="100" height="50" x="100" y="100"/>
</svg>