[html5] r5359 - [giow] (2) Make ' red' parse as 'red' for legacy colours. Fixing http://www.w3.o [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 25 22:50:26 PDT 2010


Author: ianh
Date: 2010-08-25 22:50:24 -0700 (Wed, 25 Aug 2010)
New Revision: 5359

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make ' red' parse as 'red' for legacy colours.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9847

Modified: complete.html
===================================================================
--- complete.html	2010-08-26 05:02:25 UTC (rev 5358)
+++ complete.html	2010-08-26 05:50:24 UTC (rev 5359)
@@ -5384,18 +5384,25 @@
    <li><p>If <var title="">input</var> is the empty string, then
    return an error.</li>
 
-   <li><p>If <var title="">input</var> is an <a href=#ascii-case-insensitive>ASCII
+   <li><p>Let <var title="">keyword</var> be a string with the same
+   value as <var title="">input</var>.</li>
+
+   <li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">keyword</var>.</li>
+
+   <li><p>If <var title="">keyword</var> is an <a href=#ascii-case-insensitive>ASCII
    case-insensitive</a> match for the string "<code title="">transparent</code>", then return an error.</li>
 
-   <li><p>If <var title="">input</var> is an <a href=#ascii-case-insensitive>ASCII
-   case-insensitive</a> match for one of the keywords listed in the
-   <a href=http://www.w3.org/TR/css3-color/#svg-color>SVG color
-   keywords</a> <!-- or <a
-   href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
-   Colors</a> --> section<!--s--> of the CSS3 Color specification,
-   then return the <a href=#simple-color>simple color</a> corresponding to that
-   keyword. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+   <li>
 
+    <p>If <var title="">keyword</var> is an <a href=#ascii-case-insensitive>ASCII
+    case-insensitive</a> match for one of the keywords listed in
+    the <a href=http://www.w3.org/TR/css3-color/#svg-color>SVG color
+    keywords</a> <!-- or <a
+    href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
+    Colors</a> --> section<!--s--> of the CSS3 Color specification,
+    then return the <a href=#simple-color>simple color</a> corresponding to that
+    keyword. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+
     <p class=note><a href=http://www.w3.org/TR/css3-color/#css2-system>CSS2 System
     Colors</a> are not recognised.</p>
 

Modified: index
===================================================================
--- index	2010-08-26 05:02:25 UTC (rev 5358)
+++ index	2010-08-26 05:50:24 UTC (rev 5359)
@@ -5306,18 +5306,25 @@
    <li><p>If <var title="">input</var> is the empty string, then
    return an error.</li>
 
-   <li><p>If <var title="">input</var> is an <a href=#ascii-case-insensitive>ASCII
+   <li><p>Let <var title="">keyword</var> be a string with the same
+   value as <var title="">input</var>.</li>
+
+   <li><p><a href=#strip-leading-and-trailing-whitespace>Strip leading and trailing whitespace</a> from <var title="">keyword</var>.</li>
+
+   <li><p>If <var title="">keyword</var> is an <a href=#ascii-case-insensitive>ASCII
    case-insensitive</a> match for the string "<code title="">transparent</code>", then return an error.</li>
 
-   <li><p>If <var title="">input</var> is an <a href=#ascii-case-insensitive>ASCII
-   case-insensitive</a> match for one of the keywords listed in the
-   <a href=http://www.w3.org/TR/css3-color/#svg-color>SVG color
-   keywords</a> <!-- or <a
-   href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
-   Colors</a> --> section<!--s--> of the CSS3 Color specification,
-   then return the <a href=#simple-color>simple color</a> corresponding to that
-   keyword. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+   <li>
 
+    <p>If <var title="">keyword</var> is an <a href=#ascii-case-insensitive>ASCII
+    case-insensitive</a> match for one of the keywords listed in
+    the <a href=http://www.w3.org/TR/css3-color/#svg-color>SVG color
+    keywords</a> <!-- or <a
+    href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
+    Colors</a> --> section<!--s--> of the CSS3 Color specification,
+    then return the <a href=#simple-color>simple color</a> corresponding to that
+    keyword. <a href=#refsCSSCOLOR>[CSSCOLOR]</a></p>
+
     <p class=note><a href=http://www.w3.org/TR/css3-color/#css2-system>CSS2 System
     Colors</a> are not recognised.</p>
 

Modified: source
===================================================================
--- source	2010-08-26 05:02:25 UTC (rev 5358)
+++ source	2010-08-26 05:50:24 UTC (rev 5359)
@@ -4780,19 +4780,27 @@
    <li><p>If <var title="">input</var> is the empty string, then
    return an error.</p></li>
 
-   <li><p>If <var title="">input</var> is an <span>ASCII
+   <li><p>Let <var title="">keyword</var> be a string with the same
+   value as <var title="">input</var>.</p></li>
+
+   <li><p><span>Strip leading and trailing whitespace</span> from <var
+   title="">keyword</var>.</p></li>
+
+   <li><p>If <var title="">keyword</var> is an <span>ASCII
    case-insensitive</span> match for the string "<code
    title="">transparent</code>", then return an error.</p></li>
 
-   <li><p>If <var title="">input</var> is an <span>ASCII
-   case-insensitive</span> match for one of the keywords listed in the
-   <a href="http://www.w3.org/TR/css3-color/#svg-color">SVG color
-   keywords</a> <!-- or <a
-   href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
-   Colors</a> --> section<!--s--> of the CSS3 Color specification,
-   then return the <span>simple color</span> corresponding to that
-   keyword. <a href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
+   <li>
 
+    <p>If <var title="">keyword</var> is an <span>ASCII
+    case-insensitive</span> match for one of the keywords listed in
+    the <a href="http://www.w3.org/TR/css3-color/#svg-color">SVG color
+    keywords</a> <!-- or <a
+    href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
+    Colors</a> --> section<!--s--> of the CSS3 Color specification,
+    then return the <span>simple color</span> corresponding to that
+    keyword. <a href="#refsCSSCOLOR">[CSSCOLOR]</a></p>
+
     <p class="note"><a
     href="http://www.w3.org/TR/css3-color/#css2-system">CSS2 System
     Colors</a> are not recognised.</p>




More information about the Commit-Watchers mailing list