“Selected” style with gradients.

Cool things: you don't need pseudo-elements, you can keep them for something else; it works fine with overflow: hidden as well.

Ideally a use case for border-image although it's pretty hard to use / broken.