Re: Minor error in CSS2, section 14.2; 'background'

On Mon, 6 Sep 1999, Jan Roland Eriksson wrote:

>> The 'background' property cannot have the value 'transparent', since
>> it is a shorthand property.
> 
> I'm getting confused?
> None of the two available CSS lints flags errors for this test.
> 
>   .test {
>      color : #000000;
>      background : transparent none repeat;
>   }
> 
> How to interpret that, if the 'background' property can not be given a
> value of 'transparent' ?

What I meant was that the 'background' property does have a 'value' itself
-- I was considering it 'write only', since if you set it all it does is
change all the relevant longhand properties.

But apparently David has already raised this issue with the DOM folk, and
shorthand properties do have values. So never mind...

-- 
Ian Hickson
: Is your JavaScript ready for Nav5 and IE5?
: Get the latest JavaScript client sniffer at 
: http://developer.netscape.com/docs/examples/javascript/browser_type.html

Received on Tuesday, 7 September 1999 11:31:11 UTC