Last Updated: February 25, 2016
·
1.484K
· _faz

Box shadow that includes pseudo elements

When using box-shadow with a pseudo element outside the element, you usually see that the shadow isn't applied on the pseudo element.

Instead of using box-shadow, you can use webkit filter, and then, your pseudo element will "receive" the shadow

Live demo