got a strange issue with safari 7.

I have a simple box that gets scaled on hover the funny thing since Safari 7 it seams that the box shadow disappears when scaling the box.

Does anyone else had this issue and a solution?

Normal state


Scaled state

Running example: http://pizzadatoni.ch/shop/chur/pizza-xxextra/

Thanks for your help :)

有帮助吗?

解决方案

Looks like it's a bug in Webkit (as of this writing in the webkit nightly). Here's a simple demo to reproduce. And here's the bug report I filed.

其他提示

It's not a fix, but you can avoid this problem by using filter: drop-shadow() instead of box-shadow().

Oddly enough, applying a border-radius (even a small one) seems to fix the problem.

border-radius: 0.02px;

see a demo here: http://codepen.io/anon/pen/ONWOGp

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top