hixie: Clarify how context.font works regarding relative values for font-size. (whatwg r3537)

hixie: Clarify how context.font works regarding relative values for
font-size. (whatwg r3537)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2732&r2=1.2733&f=h
http://html5.org/tools/web-apps-tracker?from=3536&to=3537

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2732
retrieving revision 1.2733
diff -u -d -r1.2732 -r1.2733
--- Overview.html 4 Aug 2009 05:15:31 -0000 1.2732
+++ Overview.html 4 Aug 2009 23:34:55 -0000 1.2733
@@ -21746,8 +21746,8 @@
     the CSS 'font' property; values that cannot be parsed as CSS font
     values are ignored.</p>
 
-    <p>Relative keywords and lengths are computed relative to the
-    default font, 10px sans-serif.</p>
+    <p>Relative keywords and lengths are computed relative to the font
+    of the <code><a href="#the-canvas-element">canvas</a></code> element.</p>
 
    </dd>
 
@@ -21809,10 +21809,10 @@
   property of CSS (but without supporting property-independent
   stylesheet syntax like 'inherit'), and the resulting font must be
   assigned to the context, with the 'line-height' component forced to
-  'normal'. If the new value is syntactically incorrect (including
-  using property-independent stylesheet syntax like 'inherit' or
-  'initial'), then it must be ignored, without assigning a new font
-  value. <a href="#references">[CSS]</a></p>
+  'normal', and with the 'font-size' component converted to CSS
+  pixels. If the new value is syntactically incorrect (including using
+  property-independent stylesheet syntax like 'inherit' or 'initial'),
+  then it must be ignored, without assigning a new font value. <a href="#references">[CSS]</a></p>
 
   <p>Font names must be interpreted in the context of the
   <code><a href="#the-canvas-element">canvas</a></code> element's stylesheets; any fonts embedded using
@@ -21826,8 +21826,9 @@
   make the font look very ugly.</p>
 
   <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 (with no 'line-height' component). <a href="#references">[CSSOM]</a></p>
+  attribute must return the <span title="serializing a CSS
+  value">serialized form</span> of the current font of the context
+  (with no 'line-height' component). <a href="#references">[CSSOM]</a></p>
 
   <div class="example">

Received on Tuesday, 4 August 2009 23:35:51 UTC