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

canvas text: ctx.font='inherit'

From: Simon Pieters <simonp@opera.com>
Date: Tue, 21 Jul 2009 08:07:40 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.uxely2sxidj3kv@zcorpandell.linkoping.osa>
"The font DOM attribute, on setting, must be parsed the same way as the  
'font' property of CSS (but without supporting property-independent  
stylesheet syntax like 'inherit'), ..."

demo for ctx.font='inherit'


Firefox seems to use the canvas element's computed value for 'font'.

WebKit seems to use 16px serif.

I suggest the spec be changed to support 'inherit' like in Firefox. (The  
spec already looks at the canvas element for 'em' units.)

Simon Pieters
Opera Software
Received on Tuesday, 21 July 2009 06:08:24 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:44:51 UTC