Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>SVG coordinate systems: transform attribute on the outermost svg element and the individual transform properties (reference)</title>
<link rel="author" title="Nikolas Zimmermann" href="mailto:nzimmermann@igalia.com">
<style>
.container { display: flex; width: 600px; height: 200px; background-color: gold; }
</style>
<div class="container">
<svg width="200" height="200">
<rect x="20" y="50" width="80" height="80" fill="green"/>
</svg>
<svg width="200" height="200">
<rect x="35" y="60" width="80" height="80" fill="green"/>
</svg>
<svg width="200" height="200">
<rect x="50" y="40" width="80" height="160" fill="green"/>
</svg>
</div>