Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<link rel="match" href="svg-use-symbol-path-print-ref.html">
<html>
<head>
<style>
body { margin: 0 }
</style>
</head>
<body>
<!-- Should see a blue square inside the top left quarter of a purple square -->
<svg width=200 height=200 viewBox="0 0 200 200">
<defs>
<symbol id="r" viewBox="0 0 200 200">
<path fill="blue">
<set attributeName="d" to="M0,0 L100,0 L100,100 L0,100 Z" fill="freeze"/>
</path>
</symbol>
</defs>
<rect fill="purple" width=100 height=100 />
<use href="#r" width="100" height="100" />
</svg>
</body>
</html>