Assuming client compatibility, is there any situation where CSS box-shadow is preferable to filter: drop-shadow.
From the article it seems like drop-shadow is a HW accelerated superset of box-shadow. This means that we should basically always use drop-shadow instead of box-shadow?
There is only one difference between
box-shadowandfilter: drop-shadow. Withbox-shadowyou can use inset shadows, but you can’t do it withfilter: drop-shadow. All depended on you. Check this example.Why is better to use
box-shadowinsted offilter: drop-shadow?Also, there is one example with image where is better to use
filter: drop-shadow. The first one has rectangle shadow, but the other one has shadow which follow the edge of image.