W3C home > Mailing lists > Public > www-style@w3.org > November 2011

Re: [css3-images] aliases for 'cover' and 'contain'

From: Brad Kemper <brad.kemper@gmail.com>
Date: Fri, 4 Nov 2011 06:44:57 -0700
Message-Id: <E36A0420-06A4-4A07-9886-62758773D8AE@gmail.com>
Cc: "www-style@w3.org" <www-style@w3.org>
To: fantasai <fantasai.lists@inkedblade.net>
On Nov 3, 2011, at 11:54 PM, fantasai <fantasai.lists@inkedblade.net> wrote:

> The radial-gradient() spec defines 'cover' as an alias for 'farthest-corner'
> and 'contain' as an alias for 'closest-side'.
> 
> We generally try to avoid aliases in CSS, why do we have these here and
> can we remove one of the pairs?

I'm probably damning your idea to an instant rejection from Brian by agreeing with you, but I have stated before that we 'nearest-corner' and 'farthest-side' are not that useful. The only time you can see the difference between them and 'cover/contain' is when the bg-position is off-center, and you see them get clipped in generally un-useful ways. 

If we had only 'cover' and 'contain', AND changed 'contain' to mean "contain within the sides that you are not moving towards via bg-position", then you would be keeping it both useful and simple, and would continue to let authors get the most popular combinations of side-based and corner-based sizing and clipping. 
Received on Friday, 4 November 2011 16:27:29 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:46 GMT