![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||||
| |||||
|
|
Michael Winter wrote: |
|
[...] The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, [...]. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. -- 4.3.6 Colors, CSS 2 Specification That seems to make it rather clear that #00f and #0000ff specify the same colour. Iff the color depth of the display device allows that, |
|
hence the remark on the dependency of the color depth of the display that is removed by using it instead of the six-digit form. |
|
You seem to have muddled your terminology. Are you referring to the onload attribute (HTML) or the onload property (OM)? |
|
Sorry for causing confusion, yet I think I had been clear enough. |
#2
| |||
| |||
|
|
[...] The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, [...]. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. -- 4.3.6 Colors, CSS 2 Specification |
#3
| |||
| |||
|
|
On 22/01/2006 22:01, Thomas 'PointedEars' Lahn wrote: Michael Winter wrote: [...] The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, [...]. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. -- 4.3.6 Colors, CSS 2 Specification That seems to make it rather clear that #00f and #0000ff specify the same colour. Iff the color depth of the display device allows that, No, not at all. They are /always/ the same. |
|
The representation of a particular colour value may differ between devices, but #bad and #bbaadd, for example, /must/ be rendered as the same colour on the same device. |
#4
| |||
| |||
|
|
Michael Winter wrote: [...] The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, [...]. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. -- 4.3.6 Colors, CSS 2 Specification The quoted part of CSS specification (and #FFF issue in whole) is targeted to Safe Palette (216 color) where each R, G and B value is represented as 00, 11, 22 ... FF |
#5
| |||
| |||
|
|
[...] The specification says "[The three-digit RGB notation] [...] removes any dependencies on the color depth of the display" for a reason. The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. ^^^ |
#6
| |||
| |||
|
|
You are missing the point. If the display device does not run with a color depth of 24 bit (16'777'216 colors) or more, it _cannot_ display the color #bbaadd (12'298'973) the same way as if it was a display device that ran with such a color depth using the same color components. The specification says "[The three-digit RGB notation] [...] removes any dependencies on the color depth of the display" for a reason. The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. You will notice that with m == 255, the color components are the same with the three-digit and the six-digit notation; hence the notion of "replicating digits" which is in fact an adaption to the available color component range and so to the available range of color numbers. |
#7
| |||
| |||
|
|
If you decided to be CSS expert also, than please study Safe Palette and other palette ussues from reputable sources. [...] |
#8
| |||
| |||
|
|
I refer you to news:5623833.npy78V61md (AT) PointedEars (DOT) de and let the rest of your nonsense speak for itself. |
#9
| |||
| |||
|
|
Michael Winter wrote: [...] The three-digit RGB notation (#rgb) is converted into six-digit form (#rrggbb) by replicating digits, [...]. This ensures that white (#ffffff) can be specified with the short notation (#fff) and removes any dependencies on the color depth of the display. -- 4.3.6 Colors, CSS 2 Specification The quoted part of CSS specification (and #FFF issue in whole) is targeted to Safe Palette (216 color) where each R, G and B value is represented as 00, 11, 22 ... FF |
#10
| |||
| |||
|
|
Thomas 'PointedEars' Lahn wrote: You are missing the point. If the display device does not run with a color depth of 24 bit (16'777'216 colors) or more, it _cannot_ display the color #bbaadd (12'298'973) the same way as if it was a display device that ran with such a color depth using the same color components. The specification says "[The three-digit RGB notation] [...] removes any dependencies on the color depth of the display" for a reason. The reason is that #bbaadd depends on the color depth of the display device, while #bad [(round(11/15*m), round(10/15*m), round(13/15*m)); m := max(2^color_depth - 1, 255)] does not. You will notice that with m == 255, the color components are the same with the three-digit and the six-digit notation; hence the notion of "replicating digits" which is in fact an adaption to the available color component range and so to the available range of color numbers. If you decided to be CSS expert also, than please study Safe Palette and other palette ussues from reputable sources. The best is Lynda Weimann's at <http://www.lynda.com> W3C is *not* a reputable source in this question because the majority of its members have no clue about practical web-design and web-development. This cluelessness is (for instance) being demonstrated in the the mentioned CSS2 paragraph. Safe Palette consists of * 216 * colors, not 256: because even withing 0-255 range 40 colors are platform dependent (Mac/Windows). |
|
Whoever wrote the quoted CSS2 paragraph must be knew *something* about Safe Palette, but not enough to get the picture right. She must be decided that Safe Palette simply consists of colors like FF DD EE (thus R,G,B values are represented in paired hex's) and that "all" such colors can degrade properly on low displays. |
![]() |
| Thread Tools | |
| Display Modes | |
| |