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

color() syntax: don't allow omitted components #186

Closed
danburzo opened this issue Feb 7, 2023 · 1 comment
Closed

color() syntax: don't allow omitted components #186

danburzo opened this issue Feb 7, 2023 · 1 comment

Comments

@danburzo
Copy link
Collaborator

danburzo commented Feb 7, 2023

The css-color spec has been changed to disallow missing components in the color() syntax.

This used to be correct per spec, long ago when color() also did custom color spaces and it was reasonable to omit some components and have them auto-filled with zero.

Now custom color spaces are in CSS Color 5, and clearly distinguished with a dashed-ident; while predefined color spaces are in CSS Color 4 and are wither an RGB space or an XYZ space. Both take 3 components, as the grammar makes clear.

There was some leftover prose about variable number of components, not up to date with the grammar change, which I just corrected.

See:

@danburzo
Copy link
Collaborator Author

Fixed in #190

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

No branches or pull requests

1 participant