devo-book/svg.html
2021-08-17 10:42:48 -04:00

13 lines
397 B
HTML

<svg preserveAspectRatio="xMinYMin meet" viewBox="0 0 100 100" style="width:100px; height:100%; background:yellow;">
<defs>
<symbol id="diamond">
<g transform="rotate(45 10 10)">
<rect width="20" height="20"></rect>
</g>
</symbol>
</defs>
<use href="#diamond" x="0" y="0" />
<use href="#diamond" x="0" y="100%" />
</svg>