Re: Question on parsing of "font" property

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 UTC