Post

You can rectify the last example using an inset box-shadow `box-shadow: 0 0 0 999px inset var(--color)` But I'd rather adjust the code to make the shape "inside" the boundary of the element if you want to use border-shape.

0 reposts2 likes

Oh, clever! Did not know an inset box-shadow could do that. I did consider just moving it inside the content area, but I kinda like it physically jotting out of the element. In a real world scenario if it weren't sticking out I'd probably need to compensate for it in terms of margins all the time.