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

Re: Splitting background-position in two different attributes

From: Jonathan Snook <jonathan@snook.ca>
Date: Wed, 17 Aug 2011 21:50:22 -0400
Cc: "www-style@w3.org" <www-style@w3.org>
Message-Id: <04019441-F686-480D-99A7-C9D156DA4C14@snook.ca>
To: Brian Manthos <brianman@microsoft.com>
> 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.

I can't find an explicit indication but elsewhere in the spec, it seems to indicate that omitted values should default to their initial value. The initial value for background-position is 0% 0%. Therefore, I would expect the default values for background-position-x and background-position-y to be 0%. In your original example, I would expect the omitted value to be 0%. 

> I think getting the serialization addressed before throwing more into the entanglement that is background is preferred.

If the expectation is to push the current spec beyond CR with these serialization issues unaddressed, then why not add background-position-x and background-position-y and continue to leave these serialization issues unaddressed? If the issue is to address them within the current spec, then I would expect that it would be trivial to address it for background-position-x/-y on top of addressing it for the other shorthand properties. (That's not to say that addressing it will be trivial but that once you've solved it for one, I would assume the same would apply to the other.)

Jonathan.
Received on Thursday, 18 August 2011 01:50:52 GMT

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