Re: Question on parsing of "font" property

* Ian Hickson 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;

Only in CSS 2.0, in CSS 1.0/2.1 it would not change font-size-adjust and
in CSS 3.0 as currently drafted it would change font-stretch in addition
to that...

Received on Wednesday, 19 May 2004 10:51:30 UTC