Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-viewport/zoom/svg-stroke-width.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS zoom does not scale SVG stroke-width when defined on svg element</title>
<link rel="match" href="svg-stroke-width-ref.html">
<style>
body { margin: 0; }
.zoom { zoom: 2; }
</style>
fill="none" stroke="black" stroke-width="2" style="zoom: 2;">
<rect x="10" y="10" width="80" height="80"/>
</svg>
<div class="zoom">
fill="none" stroke="black" stroke-width="2">
<rect x="10" y="10" width="80" height="80"/>
</svg>
</div>