Re: Splitting background-position in two different attributes

Pardon my ignorance but I'm surprised these kinds of scenarios haven't already been worked out.

For example, something like this:
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? However this works, I would imagine it would work for background-position and background-position-x and -y. 

If the desire is to hold off on putting it in B&B3 and instead put it into B&B4, is there a draft spec for that at all? What would I need to do to get developers at Mozilla and Opera to get this implemented before B&B4 gets to CR? I'll send them a pizza. :)

> There are other concerns before you even get to that.
> 
> Things like...
> 
> div {
> 	background-image: url(a.png), url(b.png), url(c.png), url(d.png);
> 	background-position-x: 1px, 2px, 3px;
> 	background-position-y: 10%, 20%, 30%, 40%, 50%;
> 	background-repeat: no-repeat, repeat, repeat-y;
> }
> 
> (a) What should an OM query for background-position return?  (I think empty string because it's not constructible.)
> (b) What should the used value for the x dimension of background-position be for the 4th image? (I think 1px, just like its repeat value is no-repeat.)
> 
> There are a myriad of cases like these.  We've addressed many of them in IE9 and have work to do (IE10+) on others.  Whether the WG will agree with our assessments and approach will be fodder for many fun discussions, I'm sure.
> 
> -Brian

Received on Thursday, 18 August 2011 00:33:14 UTC