HighDots Forums  

What's with three letter colours now?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss What's with three letter colours now? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Big Bill
 
Posts: n/a

Default What's with three letter colours now? - 12-29-2004 , 06:34 PM






as opposed to six letter colours?

I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?

BB
--
www.kruse.co.uk SEO (AT) kruse (DOT) demon.co.uk
home of SEO that's shiny!
--

Reply With Quote
  #2  
Old   
Paul
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 06:45 PM






Big Bill wrote:
Quote:
as opposed to six letter colours?

I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?

New? Hasn't it always been part of the css specification?


Reply With Quote
  #3  
Old   
Bjoern Hoehrmann
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 06:46 PM



* Big Bill wrote in comp.infosystems.www.authoring.stylesheets:
Quote:
I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?
http://www.w3.org/TR/CSS1#color-units
http://www.w3.org/TR/CSS2/syndata.html#color-units
http://www.w3.org/TR/CSS21/syndata.html#color-units
http://www.w3.org/TR/css3-color/#numerical
--
Björn Höhrmann · mailto:bjoern (AT) hoehrmann (DOT) de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


Reply With Quote
  #4  
Old   
C A Upsdell
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 07:34 PM



Paul wrote:
Quote:
Big Bill wrote:

as opposed to six letter colours?

I'm seeing body {color: #fff; background: #000;} and stuff lately. Is
this a new form of abbreviation?


New? Hasn't it always been part of the css specification?
Part of the HTML spec too. But beware: some old browsers can't handle
the 3-digit colours.



Reply With Quote
  #5  
Old   
Bjoern Hoehrmann
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 07:56 PM



* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
Quote:
I'm seeing body {color: #fff; background: #000;} and stuff lately. Is
this a new form of abbreviation?

New? Hasn't it always been part of the css specification?

Part of the HTML spec too. But beware: some old browsers can't handle
the 3-digit colours.
Which HTML spec (and according to which section in that spec?)
--
Björn Höhrmann · mailto:bjoern (AT) hoehrmann (DOT) de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


Reply With Quote
  #6  
Old   
C A Upsdell
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 08:16 PM



Bjoern Hoehrmann wrote:
Quote:
* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:

I'm seeing body {color: #fff; background: #000;} and stuff lately. Is
this a new form of abbreviation?

New? Hasn't it always been part of the css specification?

Part of the HTML spec too. But beware: some old browsers can't handle
the 3-digit colours.


Which HTML spec (and according to which section in that spec?)
Y'know, I took a look at both the HTML 4.01 and CSS 2 specs. The HTML
spec says nothing about the length of a hex colour code; the CSS spec
says that the code can be either 3 or 6 digits. So I'm not sure what
this means: does this mean that the HTML spec can take colour codes of
indefinite length: I could find nothing in the spec to either affirm or
refute this.



Reply With Quote
  #7  
Old   
Stan Brown
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 08:37 PM



"Big Bill" wrote in comp.infosystems.www.authoring.stylesheets:
Quote:
as opposed to six letter colours?

I'm seeing body {color: #fff; background: #000;} and stuff lately.
Is this a new form of abbreviation?
Yes, it was introduced only about ten years ago. :-)

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you


Reply With Quote
  #8  
Old   
Stan Brown
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 08:38 PM



"C A Upsdell" wrote in comp.infosystems.www.authoring.stylesheets:
Quote:
But beware: some old browsers can't handle
the 3-digit colours.
Which?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won't Help You:
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you


Reply With Quote
  #9  
Old   
Bjoern Hoehrmann
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-29-2004 , 09:03 PM



* C A Upsdell wrote in comp.infosystems.www.authoring.stylesheets:
Quote:
Part of the HTML spec too. But beware: some old browsers can't handle
the 3-digit colours.

Which HTML spec (and according to which section in that spec?)

Y'know, I took a look at both the HTML 4.01 and CSS 2 specs. The HTML
spec says nothing about the length of a hex colour code; the CSS spec
says that the code can be either 3 or 6 digits. So I'm not sure what
this means: does this mean that the HTML spec can take colour codes of
indefinite length: I could find nothing in the spec to either affirm or
refute this.
It means it is not defined... Please write to www-html-editor (AT) w3 (DOT) org to
report errors in the HTML/XHTML specifications.
--
Björn Höhrmann · mailto:bjoern (AT) hoehrmann (DOT) de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/


Reply With Quote
  #10  
Old   
Paul
 
Posts: n/a

Default Re: What's with three letter colours now? - 12-30-2004 , 01:31 AM



C A Upsdell > wrote:
<snip>
Quote:
Y'know, I took a look at both the HTML 4.01 and CSS 2 specs. The HTML
spec says nothing about the length of a hex colour code; the CSS spec
says that the code can be either 3 or 6 digits.
http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-color

So I'm not sure what
Quote:
this means: does this mean that the HTML spec can take colour codes of
indefinite length: I could find nothing in the spec to either affirm or
refute this.
"A color value may either be a hexadecimal number (prefixed by a hash
mark) or one of the following sixteen color names."

So if 3-digit codes work in html, it is a browser "feature". Since the
color attribute is being deprecated this discussion is irrelevant.

Paul


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.