W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

[csswg-drafts] [background-4] Add 'limit' to background-size

From: Jeremy Morton via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Sep 2016 17:15:34 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-176698578-1473786932-sysbot+gh@w3.org>
jez9999 has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [background-4] Add 'limit' to background-size ==
This is for css-backgrounds-4 (I can't seem to add labels).  Link to 
spec section:
https://drafts.csswg.org/css-backgrounds-4/

As evidenced by various threads like this one on StackOverflow:
http://stackoverflow.com/questions/21407466/css-background-size-contain-without-the-image-to-scale-up

Quite a few people (myself included) would like the functionality that
 **background-size:contain** provides, except that when the image is 
smaller than the container, it should _not_ scale up.  Perhaps we 
could add **background-size:limit**?

I know 'limit' is a pretty bad name for this behaviour, but frankly I 
think this behaviour is best described by the word 'contain' - what 
'contain' currently does feels wrong.  When the image is smaller than 
the container, it is not in fact containing it, but enlarging it.  
Still, if anyone can think of a better word than 'limit', feel free to
 suggest.

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/468 using your GitHub 
account
Received on Tuesday, 13 September 2016 17:15:46 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:03 UTC