- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Wed, 22 May 2013 12:56:02 +0800
- To: www-style@w3.org
On 05/17/2013 06:42 AM, fantasai wrote: > We need a sentence in CSS3 Fonts that says whether font-relative lengths > are calculated against the [computed? used? something else?] font-size. > > I'm pretty sure 'em' should always calculate against the specified > font-size. however I'm less sure of the other values; it seems like > taking font-size-adjust into account would be better for measurements > against the ex-height or font pitch. I just noticed this bit: http://dev.w3.org/csswg/css-fonts/#font-style-matching # Further computations, e.g., by ‘em’ values in other properties, # are based on the ‘font-size’ value that is used, not the one # that is specified. which contradicts with http://lists.w3.org/Archives/Public/www-style/2013May/0441.html > My gut feeling is that it should be based purely on computed > value, so 1em == computed value of 'font-size' regardless of > 'font-size-adjust'. So if even you are confused as to what we should do here, definitely there's a spec issue. :) ~fantasai
Received on Wednesday, 22 May 2013 04:56:36 UTC