Skip to content

[css-color-5] How exactly does the hue adjuster in color-adjust() work? #6180

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
tabatkins opened this issue Apr 6, 2021 · 1 comment
Closed

Comments

@tabatkins
Copy link
Member

In 'color-adjust()`, the spaces with hue have a hue-adjuster that looks like (grammar folded together):

hue [shorter | longer | increasing | decreasing | specified ]? ?

This seems odd in at least two ways.

  1. Adjusting a hue by percentage seems like it's a domain error. Hue is a circular range; it doesn't have a meaningful zero to adjust toward or away from. In HSL, blue hue 50% changes the hue from 240deg to 120deg, but green hue 50% adjusts it from 120deg to 60deg; I don't think there's a meaningful sense in which green is "half" of blue, or yellow is "half" of green.

  2. The shorter/longer/etc keyword seems to not do anything? That keyword is for choosing between several behaviors of interpolating between two hues; that doesn't appear to be relevant here. The spec just refers to the definition of the keywords, but doesn't explain what they actually do, or have an example of it.

@svgeesus
Copy link
Contributor

Closed by WG resolution to drop color-adjust()

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

3 participants