Web-Kit and sub-pixel values, workaround?

前端 未结 3 1305
清歌不尽
清歌不尽 2020-12-21 00:27

I noticed that Web-kit browsers like Chrome and Safari (Windows) tend to round em values to nearest pixel, while Firefox, IE, ? Opera ? can use sub-pixel values. This is nor

3条回答
  •  被撕碎了的回忆
    2020-12-21 00:53

    The problem is that chrome won't position text and text shadows at sub-pixel increments, so it rounds to the nearest pixel.

    You can see the same effect with letter-spacing where firefox will allow non-integer values in pixels, while chrome will round the closest pixel.

提交回复
热议问题