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

hixie: Clarify 'font' serialisation. (whatwg r3515)

From: poot <cvsmail@w3.org>
Date: Sat, 1 Aug 2009 08:00:50 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090731230050.C9DED2BC68@toro.w3.mag.keio.ac.jp>
hixie: Clarify 'font' serialisation. (whatwg r3515)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2712&r2=1.2713&f=h
http://html5.org/tools/web-apps-tracker?from=3514&to=3515

===================================================================
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:01:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:07 GMT