W3C home > Mailing lists > Public > www-style@w3.org > September 2010

[css3-background] background-size: cover scaling

From: Mark Nottingham <mnot@mnot.net>
Date: Sat, 18 Sep 2010 20:24:45 +1000
Message-Id: <B0B2F34E-E42C-45AF-B88E-10C4098A3D98@mnot.net>
To: www-style@w3.org
I've noticed that in two implementations*, at least, background-size: cover doesn't appear to operate as one would expect.

My case:
... where a background image is attached to the body and sized to 'cover'.

Here, the image appears to cover well and scale appropriately with "normal" browser window sizes, but when one sizes the window to be reasonably narrow yet tall, a white bar appears at the bottom; i.e., it does not truly cover the box.

Is this working as specified, or are there bugs in the implementations?

Kind regards,

* Firefox, as well as Safari and Chrome; all most recent releases

Mark Nottingham     http://www.mnot.net/
Received on Saturday, 18 September 2010 10:25:17 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:49:47 UTC