W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2010

Re: Unsupported background/border colors such as LightGray, or DarkOrange

From: Patrick Garies <pgaries@fastmail.us>
Date: Sat, 06 Mar 2010 14:08:04 -0600
Message-ID: <4B92B624.6070303@fastmail.us>
To: "C. Fr" <newsgroups.fr@gmail.com>
CC: www-validator-css@w3.org
On 2010-03-04 5:36 AM, C. Fr wrote:
> It seems that colors such as LightGray, or DarkOragne, are not
> supported by the W3C CSS validator (see for example the validation
> results of
> http://www.w3schools.com/tags/ref_color_tryit.asp?color=LightGray).
> How come? It seems to be a valid value for the color property, isn’t
> it?

As David Dorward noted, those two color values are not valid per CSS2.1
[1]; the W3C's CSS validator validates against CSS2.1 by default.

The values /are/ valid CSS3 (CSS3 Color) [2]; if you want to validate
against CSS3, you need to click "More Options" then, in the Profile
drop-down, select "CSS level 3".

[1] CSS2.1 Section 4.3.6 Colors
	<http://www.w3.org/TR/CSS21/syndata.html#color-units>
[2] CSS3 Color Section 4.3 SVG color keywords:
	<http://www.w3.org/TR/css3-color/#svg-color>
Received on Saturday, 6 March 2010 20:08:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:08 UTC