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
circleas visible above therectbut also define therectas the "visible area" for thecircleso that thecircleis clipped (not visible) where it does not intersect/overlap with therectIf 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
rectso that the stroke is still considered outside of the visible area and thecircleappears to be under the stroke but above the fill of therect(like a shape under a picture frame)?