I have a transparent .png image of crossing lines. If the drop-shadow CSS filter is applied, only the lines drop shadow, not the bounding rect (it's not the same as box-shadow).
When I apply both drop-shadow filter and transform: rotate, Chrome and FF draw the shadow first, then rotate the resulting image (merged with the shadow). I want the rotated image to drop shadow instead. (As if there is a static light source, when the image rotates).
Is it possible in pure CSS?
The only solution I see is JS trigonometrical calculation of the shadow parameters every time the image rotates.
Regards,
I am quite sure that this question has been answered before, but couldn't find it, so here it goes:
set the filter on a base element, and apply the transform in the inner one