Skip to content

Commit

Permalink
[giow] (2) Make ' red' parse as 'red' for legacy colours.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9847

git-svn-id: http://svn.whatwg.org/webapps@5359 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 26, 2010
1 parent b6298bb commit 73c9444
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 27 deletions.
25 changes: 16 additions & 9 deletions complete.html
Expand Up @@ -5384,17 +5384,24 @@ <h4 id=colors><span class=secno>2.4.6 </span>Colors</h4>
<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>
Expand Down
25 changes: 16 additions & 9 deletions index
Expand Up @@ -5306,17 +5306,24 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<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>
Expand Down
26 changes: 17 additions & 9 deletions source
Expand Up @@ -4780,18 +4780,26 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d
<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
Expand Down

0 comments on commit 73c9444

Please sign in to comment.