Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/viewBox-and-symbol-01.svg
<defs>
<symbol id="mySymbol" viewBox="0 0 20 20">
<rect fill="lime" x="50%" height="20px" width="3%"/>
</symbol>
</defs>
<rect width="100%" height="100%" fill="lime"/>
<svg viewBox="0 0 20 20">
<rect fill="red" x="50%" height="20px" width="2%"/>
</svg>
<svg>
<use href="#mySymbol"/>
</svg>
</svg>