Skip to content

[css-color-4] Clarify how to normalize <hue> #10432

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

Closed
cdoublev opened this issue Jun 12, 2024 · 0 comments
Closed

[css-color-4] Clarify how to normalize <hue> #10432

cdoublev opened this issue Jun 12, 2024 · 0 comments

Comments

@cdoublev
Copy link
Collaborator

I do not think an algorithm should be explicitly defined but can you please add examples for <hue> normalization?

Example

In hsl(-540 0 0) or hsl(540 0 0), the <hue> component is normalized to 180.

In hsl(calc(-infinity) 0 0) or hsl(calc(infinity) 0 0), the <hue> component is normalized to 0.

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