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: Mon, 7 Nov 2011 09:15:24 -0800
Message-ID: <CAAWBYDDj0b1xWX4PmSnmA4nGvNi38BPUYQZLvczs0jye3jXGzA@mail.gmail.com>
To: Brad Kemper <brad.kemper@gmail.com>
Cc: Brian Manthos <brianman@microsoft.com>, fantasai <fantasai.lists@inkedblade.net>, "www-style@w3.org" <www-style@w3.org>
On Sun, Nov 6, 2011 at 9:58 AM, Brad Kemper <brad.kemper@gmail.com> wrote:
> I vote that we just keep the aliases. I anticipate that most people who use the keywords will alternate between 'cover' and 'contain'. But those who do want to use farthest/nearest-side/corner would probably prefer them to be all consistently named. The computed value would just be 'farthest/nearest-side/corner', which could be a problem for round-tripping, but still seems like a reasonable trade-off.

Given the way the syntax discussion turned out, I agree.  Fantasai's
example usage "radial-gradient(from 25px 25px to cover, blue,
transparent)" works just fine if we keep the current definition of
"cover", since the "as" clause defaults to center when omitted.

~TJ
Received on Monday, 7 November 2011 17:16:21 GMT

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