href-gradient-element-ref.html (727B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>href - gradient element reference</title> 4 <body> 5 <svg width="300" height="300" viewBox="0 0 300 300" 6 xmlns:xlink="http://www.w3.org/1999/xlink"> 7 <linearGradient id="MyGradient"> 8 <stop offset="5%" stop-color="green"/> 9 <stop offset="95%" stop-color="gold"/> 10 </linearGradient> 11 <rect fill="url(#MyGradient)" stroke="black" x="0" y="0" 12 width="100" height="100"/> 13 14 <radialGradient id="MyRadialGradient"> 15 <stop offset="0%" stop-color="red"/> 16 <stop offset="100%" stop-color="blue"/> 17 </radialGradient> 18 <rect x="110" y="0" rx="15" ry="15" width="100" height="100" 19 fill="url(#MyRadialGradient)"/> 20 </svg> 21 </body>