improved stretching of tiles

This commit is contained in:
Stephan Richter
2020-09-14 22:12:43 +02:00
parent 1e1b3f434f
commit 140414837b
8 changed files with 36 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
<svg width="100" height="100" viewbox="0 0 100 100">
<rect x="0" y="35" width="100" height="30" />
<rect class="block" x="10" y="10" width="80" height="80" />
<text x="10" y="65" fill="red">I love SVG!</text>
<rect x="0" y="35" width="%width%" height="30" />
<rect class="block" x="20" y="10" width="%width%-40" height="80" />
<text x="25" y="65" fill="red">%text%</text>
</svg>

Before

Width:  |  Height:  |  Size: 218 B

After

Width:  |  Height:  |  Size: 225 B