Re:Learn SVG with 25 examples – How to code images in HTML
by chrismorgan on Thursday December 07, 2023 @11:47AM
(#38558591)
You don’t even need the second <use>, you can just render the <circle> normally and use it in the clipPath:
(Personally I’d also drop the <defs>-wrapping. Never did understand why structuring them that way is recommended, I don’t think it actually gets you anything except for the vanishingly rare case where you want to put something that would render if it were not in a <defs> tag—I say “vanishingly rare” because situations like you showed—//defs/circle—should normally actually use <symbol>.)
[ Parent
| on HN ]