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

[css-color-5] channel values of relative color syntax are numbers #43931

Conversation

romainmenke
Copy link
Contributor

@romainmenke romainmenke commented Jan 10, 2024

I've gone over the existing tests as well as I could and I couldn't spot any that used + or -. As far as I know using addition or subtraction is the simplest way to test that channel values are numbers and not something else. Because 1 + 1% and 1 + 1deg is expected to fail whereas 1% * 2 is valid CSS.

So I've added a few test cases for each notation that includes a calc on a channel keyword with a +.

I've also added some invalid test cases where I do the inverse, test for + 1% and where relevant + 1deg.

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, these all look correct.

@svgeesus svgeesus merged commit fe8da76 into web-platform-tests:master Jan 11, 2024
19 checks passed
@romainmenke romainmenke deleted the css-color-5-relative-color-values-are-numbers--rational-axolotl-43ece2560a branch January 11, 2024 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants