hixie: Clarify handling of CSS colors. (whatwg r5726)

hixie: Clarify handling of CSS colors. (whatwg r5726)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4588&r2=1.4589&f=h
http://html5.org/tools/web-apps-tracker?from=5725&to=5726

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4588
retrieving revision 1.4589
diff -u -d -r1.4588 -r1.4589
--- Overview.html 29 Dec 2010 22:43:37 -0000 1.4588
+++ Overview.html 29 Dec 2010 23:07:27 -0000 1.4589
@@ -2961,6 +2961,33 @@
 
    </dd>
 
+   <dt>CSS modules</dt>
+
+   <dd>
+
+    <p>While support for CSS as a whole is not required of
+    implementations of this specification (though it is encouraged, at
+    least for Web browsers), some features are defined in terms of
+    specific CSS requirements.</p>
+
+    <p>In particular, some features require that a string be
+    <dfn id="parsed-as-a-css-color-value">parsed as a CSS &lt;color&gt; value</dfn>. When parsing a CSS
+    value, user agents are required by the CSS specifications to apply
+    some error handling rules. These apply to this specification also.
+    <a href="#refsCSSCOLOR">[CSSCOLOR]</a> <a href="#refsCSS">[CSS]</a></p>
+
+    <p class="example">For example, user agents are required to close
+    all open constructs upon finding the end of a style sheet
+    unexpectedly. Thus, when parsing the string "<code title="">rgb(0,0,0</code>" (with a missing close-parenthesis) for
+    a color value, the close parenthesis is implied by this error
+    handling rule, and a value is obtained (the color 'black').
+    However, the similar construct "<code title="">rgb(0,0,</code>"
+    (with both a missing parenthesis and a missing "blue" value)
+    cannot be parsed, as it closing the open construct does not result
+    in a viable value.</p>
+
+   </dd>
+
   </dl><p>This specification does not <em>require</em> support of any
   particular network protocol, style sheet language, scripting
   language, or any of the DOM specifications beyond those described

Received on Wednesday, 12 January 2011 02:44:30 UTC