Skip to content

[css-color-5] Serialization of color-mix edge case with not normalized values including 50% #8564 #9231

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

Merged

Conversation

AndresRPerez12
Copy link
Contributor

@AndresRPerez12 AndresRPerez12 commented Aug 23, 2023

With the current instructions in the spec for serializing color-mix, values of 50% are incorrectly excluded from the serialization when the specified percentages don't add up to 100% and need normalization.

The proposed wording makes it more clear when to exclude these percentage values for both the first and the second color. The first percentage is excluded only if both are 50%, and the second one only when normalization is not required and therefore the information from the first color is enough.

Copy link
Contributor

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@svgeesus svgeesus merged commit 293e8f8 into w3c:main Aug 27, 2023
@AndresRPerez12 AndresRPerez12 deleted the colorMixSerializationNotNormalized branch August 28, 2023 13:44
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

Successfully merging this pull request may close these issues.

2 participants