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

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 UTC