Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Powerless components to match Color spec updates #3654

Open
jamesnw opened this issue Aug 14, 2023 · 1 comment
Open

Update Powerless components to match Color spec updates #3654

jamesnw opened this issue Aug 14, 2023 · 1 comment

Comments

@jamesnw
Copy link
Contributor

jamesnw commented Aug 14, 2023

There have been some color spec updates stemming from this conversation. Given these updates, the Powerless Components section of the CSS Color Level 4, New Color Spaces proposal will need to be updated.

hsl- L no longer makes H or S powerless

If the saturation of an HSL color is 0%, then the hue component is powerless.

lch/oklch- L no longer makes C or H powerless

If the chroma of an Oklch color is 0% or 0, the hue component is powerless. If the lightness of an Oklch color is 0% or 0, or 100% or 1.0, the color will be displayed as black, or white, respectively due to gamut mapping to the display.

lab/ oklab- L no longer makes a and b powerless

If the lightness of an Oklab color is 0% or 0, or 100% or 1.0, the color will be displayed as black, or white, respectively due to gamut mapping to the display.

We may still want to have some way to differentiate the formerly powerless components, but the "display as black or white" appears to be addressed in the gamut mapping algorithm which appears to match the in-progress implementation.

@jamesnw
Copy link
Contributor Author

jamesnw commented Oct 12, 2023

Updated to reflect the current state, specifically in hsl, lightness no longer makes any channel powerless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants