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 16:53:32 +0000
To: Øyvind Stenhaug <oyvinds@opera.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <9710FCC2E88860489239BE0308AC5D17123C05@TK5EX14MBXC264.redmond.corp.microsoft.com>
Yes, IE9's implementation is aligned somewhat with CSSOM but I've been told on multiple occasions not to use that document as an official reference for anything.

> -----Original Message-----
> From: www-style-request@w3.org [mailto:www-style-request@w3.org] On
> Behalf Of Øyvind Stenhaug
> Sent: Thursday, August 18, 2011 2:30 AM
> To: www-style@w3.org
> Subject: Re: Splitting background-position in two different attributes
> 
> On Thu, 18 Aug 2011 02:46:08 +0200, Brian Manthos
> <brianman@microsoft.com>
> wrote:
> 
> > Jonathan Snook:
> >> For example, something like this:
> > div {
> >> background-image: url(a.png), url(b.png), url(c.png), url(d.png);
> >> background-position: 0 0, 100% 100%;
> >> background-repeat: no-repeat;
> > }
> >> What should an OM query for 'background' return? Is it
> constructable?
> >
> > From an IE perspective:
> > Empty string.  It is not constructible because (a) you are missing 5
> > properties and (b) the layer counts for the specified properties are
> > inconsistent.
> >
> > From a W3C perspective:
> > Please point me to the specification and section that explicitly
> > indicate what the correct answer is for CSS3.  I cannot find it.
> 
> This seems pretty close:
> 
> http://www.w3.org/TR/cssom/#serializing-css-values

> http://dev.w3.org/csswg/cssom/#serializing-css-values

> 
> "If the value of a shorthand property is requested and it cannot be
> computed because the properties associated with the shorthand have
> values
> that cannot be represented by the shorthand the serialization is the
> empty
> string."
> 
> --
> Øyvind Stenhaug
> Core Norway, Opera Software ASA
> 

Received on Thursday, 18 August 2011 16:54:08 GMT

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