canvas text: line-height and getting .font

"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)?

-- 
Simon Pieters
Opera Software

Received on Tuesday, 21 July 2009 07:10:32 UTC