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

Re: order of properties

From: Rijk van Geijtenbeek <rijk@iname.com>
Date: Wed, 12 Mar 2003 20:21:21 +0100
Message-ID: <12940704802.20030312202121@iname.com>
To: www-style@w3.org

Hello Ernest,
On Wednesday, March 12, 2003 you wrote:
> On 12 Mar 2003, at 6:47, Christoph wrote:

>>> .boldtext {font:serif; font-weight:bold} causes the text to be
>>> bold.
>> 
>> Sure, because "font:serif", being invalid, is ignored.
>> 
>>   .boldtext {font: 1em serif; font-weight: bold}
>> 
>> would be bold, too.

> "font:serif" is perfectly valid. Check
> http://www.w3.org/TR/REC-CSS2/fonts.html#font-shorthand

Read the syntax description closely, and you'll note that the
declaration *has* to include a font-size value before the font-family
value. If it only contains a font-family value, it is not complete,
invalid, and should be ignored by the browser.

Greetings,
 Rijk                            mailto:rijk@iname.com

Mot du Jour:
The best cure for insomnia is to get a lot of sleep.
Received on Wednesday, 12 March 2003 14:21:23 GMT

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