-
Notifications
You must be signed in to change notification settings - Fork 747
Description
-
The css-color-5 specification makes references to
<color-functions>
. Would these functions include thelightness
adjuster in Example 10? If not, what are those adjusters to be referred to as? -
Where might I find a definitive list of those adjusters?
- The css-color-4 specification has a somewhat related and entertaining entry:
The color-functions are , ,
, , , , , , and .
-
Are the adjusters as follows?
lightness
,a
, andb
within the LAB color space;lightness
,chroma
, andhue
within the LCH color space;hue
,saturation
, andlightness
within HSL color space; and,red
,green
, andblue
within the RGB or SRGB color space.
-
UPDATE: I realize now that HSL also uses
lightness
and does not useluminance
(see comment history). If I explicitly set my colorspace torgb
and then adjustlightness()
does it — A. permanently move me to the LCH colorspace; B. temporarily move me to the LCH colorspace to perform the adjustment and then move me back; C. fail; D. something else? I think it matters, because I would want to know what the computed value should be when this is natively supports, and because I would want to write a polyfill that followed that same expectation as closely as possible.