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] Clarification on none components in relative color syntax. #10360

Open
tiaanl opened this issue May 23, 2024 · 1 comment
Open
Assignees

Comments

@tiaanl
Copy link
Contributor

tiaanl commented May 23, 2024

I have the following examples from wpt:

rgb(from rebeccapurple none none none)
rgb(from rebeccapurple none none none / none)
rgb(from rebeccapurple r g none)
rgb(from rebeccapurple r g none / alpha)
rgb(from rgb(20% 40% 60% / 80%) r g none / alpha)

all using none somewhere in the components. My expectation from the spec is that each component should stay none in the resulting code: rgb(from rebeccapurple none none none) becomes rgb(none none none).

But the current wpt contradicts this assumption.
https://github.com/web-platform-tests/wpt/blob/1f9e1af4e5bbd84e79d8c8cd17a135bcf20f6e2d/css/css-color/parsing/color-computed-relative-color.html#L115

@svgeesus
Copy link
Contributor

OK it looks like these tests need review as they encapsulate incorrect assumptions.

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