What fresh hell is THIS now? - Patrick Lauke
outline-offset
to make the outline more apparent when they are near the edge of a viewport. Otherwise, sometimes it’s a matter of being sure other content (even ::before
or ::after
content) isn’t creating additional rectangles that confuse the intended outline shape.
outline-offset
move the outline inside the element. Still, it looks like you have some visually obscured elements contributing to the outline. You may want to look into how those elements are being visually hidden.