W3C home > Mailing lists > Public > www-style@w3.org > May 2004

Re: Question on parsing of "font" property

From: Ian Hickson <ian@hixie.ch>
Date: Wed, 19 May 2004 09:21:06 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-style@w3.org
Message-ID: <Pine.LNX.4.58.0405190918001.29996@dhalsim.dreamhost.com>

On Tue, 18 May 2004, Boris Zbarsky wrote:
>
> I was asked what the right parsing of the following CSS is:
>
>    font: 10px /2 Times;

The above tokenises to the same as

    font: 10px/2 Times;

...and is therefore identical.

Specifically, it is equivalent to:

   font-size: 10px;
   line-height: 2;
   font-family: Times;
   font-weight: normal;
   font-variant: normal;
   font-style: normal;
   font-size-adjust: none;

Similarly, all of:

   font: medium A  B;

   font: medium A B;

   font: medium A
                B;

...are exactly equivalent for the same reason.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
U+1047E                                         /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 19 May 2004 05:21:40 GMT

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