css3 - background-size: cover bug in webkit -
it looks me there bug in webkit, rounding issue, that's causing background-size
property fail cover entire of element when set cover
.
jsfiddle: http://jsfiddle.net/um4cq/ (try resizing result area if don't see red background showing through on either left or top).
i've seen references bug around net, some dating 2011, i've yet hear developers. more importantly time being, if there's css workaround (without using javascript).
has found viable workaround this?
i added vendor prefix , fixed images, grouped background:
shorthand rule color , no-repeat. fixed of images, not all, notice it's related image dimensions have, used same image (that working) images , worked.
so aspect ratio of images has here , think it's because background-size: cover;
trying not distort image messing aspect ratio.
here's fiddle working... rework images have aspect ratio fit it's container properly.
Comments
Post a Comment