W3C home > Mailing lists > Public > www-style@w3.org > June 2013

Re: [cssom][css3-values] Serialization of initial from shorthand

From: Glenn Adams <glenn@skynav.com>
Date: Mon, 24 Jun 2013 13:56:58 -0600
Message-ID: <CACQ=j+fAuP0rfXLyVQ0KaZw_2Sqyj4n9+X-80AWiFXSXOvbwxg@mail.gmail.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: W3C Style <www-style@w3.org>
On Mon, Jun 24, 2013 at 1:47 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 6/24/13 3:44 PM, Glenn Adams wrote:
>
>> Here's the problem. You specify "center" in the style sheet. Not
>> "initial" and not "0% 0%".
>>
>
> ...
>
>
>  And the declaration block you specified in your first example was:
>>
>> { background-position: center; background: blue; }
>>
>
> This specifies background-position twice: once on its own and once as part
> of the 'background' shorthand.  Returning "center" here for
> background-position in this declaration block would be just as wrong as it
> would be for this case:
>
>   { background-position: center; background-position: top left }


ah, right; i stand corrected... in which case, '0% 0%' appears to be the
correct choice, and not 'initial'
Received on Monday, 24 June 2013 19:57:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC