RE: [css-background] Order of properties in background shorthand

Point of clarification...

I'm referring only to (1) IE6 the product and (2) "Internet Explorer 9 Standards" as we labeled it in IE9 product's "F12 developer tools."

Any other mode of IE9 and IE10 products have other "interesting things" going on, and I'm not speaking to that.  At least not in this thread.

Cheers,
-Brian

-----Original Message-----
From: Kang-Hao (Kenny) Lu [mailto:kennyluck@csail.mit.edu] 
Sent: Thursday, May 31, 2012 2:08 PM
To: Brian Manthos
Cc: Joe Thomas; WWW Style
Subject: Re: [css-background] Order of properties in background shorthand

(12/06/01 3:50), Brian Manthos wrote:
> Examples would help make sure I'm understanding the IE6 concern properly.

Based on testing IE6 and IE9. The parsing of the 'background' is pretty normal in IE6 standards mode. But in the quirks mode of both IE6 and IE9, 'background', as far as I can tell, is parsed as

  <'background-property'>+ <garbage>*

where an value of the same type trumps the previous value of the same type <garbage> seems to contain a lot of things.

A concrete example:

  body { red green border-box; }

would be a green background in these quriks mode. The difference is that
IE9 recognizes border-box, but IE6 doesn't.

> That said, my impression is that you're asking/expecting pre-CSS3 browsers to read something like...
>                 background: red content-box;

I think Joe is showing the preference of a particular order. Whether that turns out to be a rationale for this order or a counter-rationale I don't know, but in any case this is a source of information if we want to decide a serialization order for any CSS3 property.

Baseline: IE9 isn't a pre-CSS3 browser.

(Admittedly, I can't quite imagine why people would want to create pages in quirks mode these days. Who knows.)



Cheers,
Kenny

Received on Thursday, 31 May 2012 22:08:58 UTC