Re: order of properties

On Wednesday 2003-03-12 13:08 -0500, Ernest Cline wrote:
> "font:serif" is perfectly valid. Check
> http://www.w3.org/TR/REC-CSS2/fonts.html#font-shorthand

The reason 'font: serif' is invalid is that the 'font' shorthand
*requires* the <'font-size'> and <'font-family'> components.  (See the
"Value:" line in the property definition.)  'font: medium serif' does
what you say.

To respond to the original question, as long as shorthand properties are
expanded immediately, there's no need to store the order of the
properties that are present within a declaration block.

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >

Received on Wednesday, 12 March 2003 13:17:38 UTC