JRS: In article <ud********************************@4ax.com>, dated
Wed, 29 Dec 2004 23:34:32, seen in news:comp.infosystems.
www.authoring.s
tylesheets, Big Bill <kr***@cityscape.co.uk> posted :
Subject: What's with three letter colours now?
as opposed to six letter colours?
I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?
(1) The body of a News article should be related to, but not dependent
on, the Subject line.
(2) I note that others have, while being keen to score points, not
provided an explanation. So see
Cascading Style Sheets, level 1
W3C Recommendation 17 Dec 1996
http://www.w3.org/pub/WWW/TR/REC-CSS1
which includes :-
6.3 Color units
...
The format of an RGB value in hexadecimal notation is a '#' immediately
followed by either three or six hexadecimal characters. The three-digit
RGB notation (#rgb) is converted into six-digit form (#rrggbb) by
replicating digits, not by adding zeros. For example, #fb0 expands to
#ffbb00. This makes sure that white (#ffffff) can be specified with the
short notation (#fff) and removes any dependencies on the color depth of
the display.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.