Re: [csswg-drafts] [css-color-4] Device-independent color definitions (#8065)

The text for Lightness indeed only talks about percentages, because CSS WG early on decided that percentages were mandatory and only much later was this relaxed to also allow number, like everyone outside of CSS WG expects.

> The first argument specifies the CIE Lightness. This is a number between 0% (representing black) and 100% (representing white), Values less than 0% must be clamped to 0% at computed-value time; values greater than 100% are clamped to 100%.

I agree that this needs to be edited to take into account that numbers are now allowed (and are the serialized form). 

@GPHemsley wrote:

> What are the additional tables of "Percentages" and "Percent reference range" meant to be used for? 

Converting percentages to numbers

> 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.

Yeah I agree that should be 

> Lightness (L)

at first usage, so it is clear they are the same concept; one is the name and the other is the symbol. Same for Chroma and C.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8065#issuecomment-1313947114 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 November 2022 15:36:23 UTC