[CSS21] background shorthand and inherit value

Hello, CSS WG, all

I hope this is the right forum to ask a question about a CSS  
implementation.

We recently received a bug report on the CSS validator:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5307

The bug reporter would like to use the current syntax:

#frontHeader {
  background:inherit url(img/banner_two.jpg) no-repeat left bottom;
}

Now, the "background" property has always been a bit of a mystery to  
me. I can't really wrap my head around the fact this shortcut property  
sets number of individual properties in any possible order. So I may  
just be confused.

The spec (CSS21) says:

'background'
     Value:  	[<'background-color'> || <'background-image'> ||  
<'background-repeat'> || <'background-attachment'> || <'background- 
position'>] | inherit

Which can be interpreted as "shorthand for a number of the background  
properties" OR inherit, alone. But since each of the individual  
properties can themselves have "inherit" as value, I suppose the CSS  
block quoted above is fine?

Now, if the above is fine, how about the following. Is this acceptable  
per the CSS spec? and if so, how should this be parsed?

p {
background: inherit inherit;
}

Would appreciate any guidance in understanding this better.

Thanks,
-- 
olivier 

Received on Tuesday, 25 March 2008 17:07:26 UTC