Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/struct/reftests/outer-svg-transform-in-html-scale.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>scale in the transform attribute resizes the outermost svg element's box, inline in an HTML document</title>
<link rel="match" href="reference/outer-svg-transform-in-html-scale-ref.html">
<style>
body { margin: 0 }
svg { display: block }
</style>
<svg width="200" height="100" transform="scale(0.5)">
<rect width="200" height="100" fill="green"/>
</svg>