W3C home > Mailing lists > Public > public-html@w3.org > July 2009

Re: canvas text: line-height and getting .font

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 31 Jul 2009 23:02:02 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0907312254380.6420@hixie.dreamhostps.com>
On Tue, 21 Jul 2009, Simon Pieters wrote:
>
> "The font DOM attribute, on setting, must be parsed the same way as the 'font'
> property of CSS ... with the 'line-height' component forced to 'normal'.
> ...
> On getting, the font attribute must return the serialized form of the current
> font of the context. [CSSOM]"
> 
> What does forcing line-height to normal mean for getting?
> 
> Consider
> 
> ctx.font='15px/2 serif';
> alert(ctx.font);
> 
> should it alert '15px/2 serif' or '15px serif' (or something else)?

"15px serif". I've tried to make it clearer.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 31 July 2009 23:02:37 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:48 UTC