Skip to content

Commit 8ed7ef8

Browse files
committed
[css-color-4] Add explanatory note w3c#5284
1 parent 7523501 commit 8ed7ef8

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

css-color-4/Overview.bs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,11 +652,31 @@ Named Colors</h3>
652652

653653
The names resolve to colors in sRGB.
654654

655-
16 of CSS's named colors come from HTML originally:
655+
16 of CSS's named colors come from the VGA palette originally, and were then adopted into HTML:
656656
aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow.
657657
Most of the rest
658658
come from one version of the X11 color system,
659-
used in Unix-derived systems to specify colors for the console.
659+
used in Unix-derived systems to specify colors for the console,
660+
and were then adopted into SVG.
661+
662+
Note: these color names are standardized here,
663+
<em>not because they are good</em>,
664+
but because their use and implementation has been widespread for decades
665+
and the standard needs to reflect reality.
666+
Indeed, it is often hard to imagine what each name will look like (hence the list below);
667+
the names are not evenly distributed throughout the sRGB color volume,
668+
the names are not even internally consistent
669+
(<span class="swatch" style="--color: darkgray"></span> ''darkgray'' is lighter than
670+
<span class="swatch" style="--color: gray"></span> ''gray'', while
671+
<span class="swatch" style="--color: lightpink"></span> ''lightpink'' is darker than
672+
<span class="swatch" style="--color: pink"></span> ''pink''),
673+
and some names
674+
(such as <span class="swatch" style="--color: indianred"></span> ''indianred'',
675+
which was originally named after a red pigment from India),
676+
have been found to be offensive.
677+
Thus, their use is not encouraged.
678+
679+
660680
(Two special color values, ''transparent'' and ''<color>/currentcolor'',
661681
are specially defined in their own sections.)
662682

0 commit comments

Comments
 (0)