Skip to content

[css-color] out of range lab and lch values #289

@svgeesus

Description

@svgeesus

https://drafts.csswg.org/css-color/#specifying-lab-lch

Need to define handling for out of range numbers. Clip L, wrap H? Have also seen L up to 400, specifically for high dynamic range situations.

I propose that css-color-4 leaves high dynamic range out of scope. Addressing it requires looking at color re-rendering, which is complex and should be left to a later version when there is more industry experience to draw upon.

Given that, it is clear that L should be clamped to the 0 to 100 range, that H should be wrapped to the 0 to 360 range, that C should have negative values clamped to 0 and that a, b are unbounded.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions