svg-use-symbol-path-print.html (661B)
1 <!doctype html> 2 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1843883"> 3 <link rel="match" href="svg-use-symbol-path-print-ref.html"> 4 <html> 5 <head> 6 <style> 7 body { margin: 0 } 8 </style> 9 </head> 10 <body> 11 <!-- Should see a blue square inside the top left quarter of a purple square --> 12 <svg width=200 height=200 viewBox="0 0 200 200"> 13 <defs> 14 <symbol id="r" viewBox="0 0 200 200"> 15 <path fill="blue"> 16 <set attributeName="d" to="M0,0 L100,0 L100,100 L0,100 Z" fill="freeze"/> 17 </path> 18 </symbol> 19 </defs> 20 <rect fill="purple" width=100 height=100 /> 21 <use href="#r" width="100" height="100" /> 22 </svg> 23 </body> 24 </html>