I'm pretty sure this is either incredibly easy or one of those disappointing things to add to my SVG wish list:
Suppose I have a rect
like so:
<rect x="0" y="0" height="500" width="800 fill="gold" stroke="red" stroke-width="16" />
And I also have a `circle, like this:
<circle cx="800" cy="0" r="250" fill="#c06" stroke="#930" stroke-width="12" />
Kind of close to this fiddle.
Is it possible to define the
circle
as visible above therect
but also define therect
as the "visible area" for thecircle
so that thecircle
is clipped (not visible) where it does not intersect/overlap with therect
If this is possible, is it further possible (assuming it's not the default behavior) to define the "visible" area as the filled area of the
rect
so that the stroke is still considered outside of the visible area and thecircle
appears to be under the stroke but above the fill of therect
(like a shape under a picture frame)?