W3C home > Mailing lists > Public > www-style@w3.org > June 2005

Re: Initial Value

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Tue, 31 May 2005 22:11:03 -0500
Message-ID: <429D2747.7080002@mit.edu>
To: Felix Miata <mrmazda@ij.net>
CC: www-style@w3.org

Felix Miata wrote:
> OK, so still from
> http://www.w3.org/TR/CSS21/fonts.html#propdef-font-size the result of
> the reset to initial value is font-size: medium.


>>   font-size: 70%;

>>Note that this is all happening while the _specified_ value is being determined.
>>  There is no inheritance involved yet; the resulting specified value of
>>"font-size" is 70%.  This leads to a computed value of "11.2px" in your case,
>>since the computed value of font-size is an absolute length.
> 70% (specified via font) of 20px (per the testcase, the actual UA
> default setting reset by font to medium)

No.  Again, all the "font" shorthand in question does to the "font-size" is 
effectively specify:

   font-size: medium;
   font-size: 70%;

When converting the 70% to an absolute length, the "percentages" section in the 
description of the font-size property is applied.  I don't see where you're 
insisting on pulling the "UA default setting" out of here... it doesn't matter 
what the UA default setting is; only what the computed font-size of the parent 
of the node in question is.

Received on Wednesday, 1 June 2005 03:11:09 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:18 UTC