Skip to content

[css-color-4] Device-independent color definitions #8065

Closed
@GPHemsley

Description

@GPHemsley

The sections on device-independent colors (Lab/LCH/OkLab/OkLCH) seems to intermingle normative and informative prose, making it hard to distinguish what is needed for implementation and what is simply a history lesson.

This then has a knock-on effect on the actual syntax of the functions, because certain concepts are either silently alluded to or are unspecified altogether, in both cases assuming too much about the reader's familiarity with the concepts and thus ability to fill in the gaps.

For example:

  • How are <number> values to be interpreted? Everything but the grammar itself talks only about percentages.
  • What are the additional tables of "Percentages" and "Percent reference range" meant to be used for? The data there is either redundant with or not directly referenced by the definition.
  • Terms like "Lightness" and abbreviations/variables like "L" seem to be used interchangeably throughout the definitions, which makes it hard to keep track of what values are used where.

Can this section be clarified more to differentiate parsing vs. processing, and otherwise focus on the aspects related to implementation? More linked terms may also help.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions