RE: Splitting background-position in two different attributes

Note that IE9 continues supporting the background-position-x and background-position-y from versions past, adding with layered support.  It's remains un-prefixed for historical reasons.

There are some bugs and "odd cases" you might run across, but generally it should be doing what you expect.  Feel free to try it out and provide feedback on issues you find through the normal channels.

-Brian


From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of Jonathan Snook
Sent: Thursday, August 04, 2011 10:25 AM
To: Tab Atkins Jr.
Cc: www-style@w3.org
Subject: Re: Splitting background-position in two different attributes

As you indicated, this has been discussed before, and rejected.  I
believe the reasoning for it being rejected is still valid.

I documented my issues with background-position-x/y here:
http://snook.ca/archives/html_and_css/background-position-x-y

I provided three specific use cases: animation, spriting, and internationalization. With the majority of browsers having an existing implementation, it seems like pure stubbornness not to include it at this point. Why not codify what most browsers are already doing? As great as Media Fragments and other specs are, implementations just aren't there.

I would feel that, as a general rule for CSS, any combined value (background-position, box-shadow, animation, etc) should be possibly decomposed to a single value.

Jonathan.

Received on Thursday, 4 August 2011 17:43:27 UTC