8000 [css-color-5] What are the color functions (or color adjusters)? · Issue #4743 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-color-5] What are the color functions (or color adjusters)? #4743

@jonathantneal

Description

@jonathantneal
  1. The css-color-5 specification makes references to <color-functions>. Would these functions include the lightness adjuster in Example 10? If not, what are those adjusters to be referred to as?

  2. Where might I find a definitive list of those adjusters?

    1. The css-color-4 specification has a somewhat related and entertaining entry:

     
    The color-functions are , ,
    , , , , , , and .
     

  3. Are the adjusters as follows?

    • lightness, a, and b within the LAB color space;
    • lightness, chroma, and hue within the LCH color space;
    • hue, saturation, and lightness within HSL color space; and,
    • red, green, and blue within the RGB or SRGB color space.
  4. UPDATE: I realize now that HSL also uses lightness and does not use luminance (see comment history). If I explicitly set my colorspace to rgb and then adjust lightness() 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0