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

html5/spec Overview.html,1.2712,1.2713

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 31 Jul 2009 23:00:35 +0000
To: public-html-commits@w3.org
Message-Id: <E1MX15X-0004uH-F2@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv18822

Modified Files:
	Overview.html 
Log Message:
Clarify 'font' serialisation. (whatwg r3515)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2712
retrieving revision 1.2713
diff -u -d -r1.2712 -r1.2713
--- Overview.html	31 Jul 2009 22:53:00 -0000	1.2712
+++ Overview.html	31 Jul 2009 23:00:32 -0000	1.2713
@@ -21752,7 +21752,21 @@
 
   <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="#references">[CSSOM]</a></p>
+  context (with no 'line-height' component). <a href="#references">[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>". The
+   "400" font-weight doesn't appear because that is the default
+   value. The line-height doesn't appear because it is forced to
+   "normal", the default value.</p>
+
+  </div>
 
   <p>When the context is created, the font of the context must be set
   to 10px sans-serif. When the 'font-size' component is set to lengths
Received on Friday, 31 July 2009 23:00:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 31 July 2009 23:00:44 GMT