[whatwg] [html5] r3515 - [e] (0) Clarify 'font' serialisation.

On Sat, 01 Aug 2009 01:00:28 +0200, <whatwg at whatwg.org> wrote:

> Author: ianh
> Date: 2009-07-31 16:00:26 -0700 (Fri, 31 Jul 2009)
> New Revision: 3515
>
> Modified:
>    index
>    source
> Log:
> [e] (0) Clarify 'font' serialisation.
>
> Modified: index
> ===================================================================
> --- index	2009-07-31 22:52:55 UTC (rev 3514)
> +++ index	2009-07-31 23:00:26 UTC (rev 3515)
> @@ -24662,8 +24662,22 @@
>   <p>On getting, the <code title=dom-context-2d-font><a  
> href=#dom-context-2d-font>font</a></code>
>    attribute must return the serialized form of the current font of the
> -  context. <a href=#refsCSSOM>[CSSOM]</a></p>
> +  context (with no 'line-height' component). <a  
> href=#refsCSSOM>[CSSOM]</a></p>
> +  <div class=example>
> +
> +   <p>For example, after the following statement:</p>
> +
> +   <pre>context.font = 'italic 400 12px/2 Unknown Font,  
> sans-serif';</pre>
> +
> +   <p>...the expression <code title="">context.font</code> would
> +   evaluate to the string "<code  
> title="">italic&nbsp;12px&nbsp;Unknown&nbsp;Font,&nbsp;sans-serif</code>".

I think CSSOM says font names should be quoted.

-- 
Simon Pieters
Opera Software

Received on Friday, 31 July 2009 22:43:11 UTC