Skip to content

Commit eae549f

Browse files
committed
[css-color-4] clarify L=100 is a diffuse white, permit specular L values for HDR. Fixes w3c#289
1 parent 55760a4 commit eae549f

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

css-color-4/Overview.bs

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ Representing sRGB Colors: the <<color>> type</h2>
115115
and can take any value between those two.
116116

117117
While all colors share an underlying storage format,
118+
<!-- that is unlikely to be the case in future, with half floats etc being added to the OM -->
118119
CSS contains several syntaxes for <em>specifying</em> <<color>> values.
119120
Some directly specify the sRGB color,
120121
such as the ''rgb()'' and ''rgba()'' functions
@@ -135,7 +136,7 @@ Representing sRGB Colors: the <<color>> type</h2>
135136

136137
Some operations work differently on <dfn export>achromatic</dfn> colors.
137138
An <a>achromatic</a> color is a shade of gray:
138-
in the RGB colorspace,
139+
in the sRGB colorspace,
139140
a color is <a>achromatic</a> if the red, green, and blue channels are all the same value;
140141
in the HSL colorspace,
141142
a color is <a>achromatic</a> if the saturation is ''0%'';
@@ -208,6 +209,7 @@ Resolving Color values</h2>
208209

209210
Issue: Gecko disagrees, and serializes any <<color>> with an alpha channel of 0 as transparent.
210211
No other browser does that though.
212+
<!-- needs WPT test -->
211213

212214
<li>
213215
The computed value and used value of
@@ -1580,13 +1582,17 @@ Device-independent Colors: Lab and LCH</h2>
15801582

15811583
Lab is a rectangular coordinate system with a central Lightness axis.
15821584
L=0 is deep black (no light at all)
1583-
while L=100 is white
1584-
(D50 white, a standardized daylight spectrum with a color temperature of 5000K).
1585-
Usefully, L=50 is mid gray, by design:
1585+
while L=100 is a diffuse white
1586+
(the illuminant is D50 white, a standardized daylight spectrum with a color temperature of 5000K,
1587+
as reflected by a perfect diffuse reflector).
1588+
Values greater than 100 would correspond to specular highlights,
1589+
but their precise color is undefined in this specification.
1590+
Usefully, L=50 is mid gray, by design,
1591+
and equal increments in L are evenly spaced visually:
15861592
the Lab color space is intended to be <em>perceptually uniform</em>.
15871593
The a and b axes convey hue;
1588-
positive values along the a axis are red
1589-
while negative values are the complementary color, green.
1594+
positive values along the a axis are a purplish red
1595+
while negative values are the complementary color, a green.
15901596
Similarly, positive values along the b axis are yellow
15911597
and negative are the complementary blue/violet.
15921598
Desaturated colors have small values of a and b
@@ -1599,9 +1605,11 @@ Device-independent Colors: Lab and LCH</h2>
15991605
the values used in image editors which offer Lab editing,
16001606
and the value used by physical measurement devices such as spectrometers,
16011607
when they report measured colors in Lab.
1602-
Conversion from colors specified using other white points is called a chromatic adaptation transform,
1608+
Conversion from colors specified using other white points is called a <dfn export>chromatic adaptation transform</dfn>,
16031609
which models the changes in the human visual system as we adapt to a new lighting condition.
1604-
The Bradford algorithm is the industry standard chromatic adaptation transform,
1610+
The Bradford algorithm
1611+
<!-- add reference -->
1612+
is the industry standard chromatic adaptation transform,
16051613
and is easy to calculate as it is a simple matrix multiplication.
16061614

16071615

@@ -1649,6 +1657,9 @@ Specifying Lab and LCH: the lab() and lch() functional notations</h3>
16491657
similar to the lightness argument of ''hsl()''.
16501658
However, CIE Lightness <em>can</em> exceed this range on some systems,
16511659
with extra-bright whites using a lightness up to ''400''.
1660+
Values less than ''0'' must be clipped to ''0''; values greater than
1661+
''100'' are permitted (for forwards compatibility with High Dynamic Range (HDR),
1662+
and must not be clipped.
16521663

16531664
The second and third arguments are the distances along the "a" and "b" axises
16541665
in the Lab colorspace,

0 commit comments

Comments
 (0)