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

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 4 Nov 2011 09:38:07 -0700
Message-ID: <CAAWBYDCCKUzV-X8E1V+URXVUH2gBKot=p3PHLZxYqFHH9-usrg@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>
On Thu, 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?

Blame my youthful naivete.  I originally created the closest/farthest
keywords, and then thought that reusing bg-size's cover/contain
keywords would be more intuitive, so I had them both.

I know I've seen usage of both forms in the wild.

~TJ
Received on Friday, 4 November 2011 16:39:03 GMT

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