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

RE: Splitting background-position in two different attributes

From: Brian Manthos <brianman@microsoft.com>
Date: Thu, 18 Aug 2011 17:39:15 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: Øyvind Stenhaug <oyvinds@opera.com>, Alan Gresley <alan@css-class.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D17123D80@TK5EX14MBXC264.redmond.corp.microsoft.com>
Shouldn't that be -webkit-initial?

If not, please point me to the CR+ spec that defines this keyword.


> -----Original Message-----
> From: Tab Atkins Jr. [mailto:jackalmage@gmail.com]
> Sent: Thursday, August 18, 2011 10:17 AM
> To: Brian Manthos
> Cc: Øyvind Stenhaug; Alan Gresley; www-style@w3.org
> Subject: Re: Splitting background-position in two different attributes
> 
> 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:39:51 GMT

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