W3C home > Mailing lists > Public > www-style@w3.org > March 2003

Re: order of properties

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 12 Mar 2003 13:17:39 -0500
To: www-style@w3.org
Message-ID: <20030312181739.GA3530@pool-151-201-154-246.phil.east.verizon.net>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:20 GMT