So in the example, turning the red border on the div and span in a single shape, losing the border that falls inside the div area. Could shape-outline be used?
Thanks, yeah an SVG shape does seem the way to go. Clip-path won’t give a border around the clipped shape as far as I can see, it applies the border to the div/element.