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

Re: Splitting background-position in two different attributes

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 18 Aug 2011 10:17:20 -0700
Message-ID: <CAAWBYDCjG4CyEuGUBRWMCpJGZcOenZcTh-yqNhd2WvoTMRjYqg@mail.gmail.com>
To: Brian Manthos <brianman@microsoft.com>
Cc: Øyvind Stenhaug <oyvinds@opera.com>, Alan Gresley <alan@css-class.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Aug 18, 2011 at 10:00 AM, Brian Manthos <brianman@microsoft.com> wrote:
> Again, an example...
>        background: blue;
> is not equivalent to...
>        background-color: blue;
> but rather...
>        background-attachment: scroll;
>        background-clip: border-box;
>        background-color: blue;
>        background-image: none;
>        background-origin: padding-box;
>        background-position: 0% 0%;
>        background-repeat: repeat;
>        background-size: auto;

Or, somewhat more simply:

background-attachment: initial;
background-clip: initial;
background-color: blue;
background-image: initial;
background-origin: initial;
background-position: initial;
background-repeat: initial;
background-size: initial;

(Same effect, of course.  This is what's exposed by the Webkit
Inspector when you expand a shorthand.)

~TJ
Received on Thursday, 18 August 2011 17:18:07 GMT

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