Why doesn't blur(0) remove all text blur in Webkit/Chrome on retina screens?

前端 未结 3 1396
夕颜
夕颜 2021-01-19 03:50

I recently came across an odd behaviour in Webkit browsers (under OSX at least) which took far longer to resolve than I would like!

Essentially: setting filter

3条回答
  •  时光说笑
    2021-01-19 04:22

    I had to deal with this some time ago because I had to do a filter transition, so I needed it to go zero and not none. Actually, it is kind of a known WebKit bug that only affects retina screens, no matter if it's a @2x image, text or whatever.

    To make it work you'll need to add -webkit-transform: translateZ(0);

    Works like magic. But don't take my word for it, you can check it out here: http://jsbin.com/OnebuKU/2/edit

提交回复
热议问题