-
Notifications
You must be signed in to change notification settings - Fork 715
[css-color] Is relative color syntax ready to ship? #7978
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
Comments
@nt1m how does the WebKit implementation (and what does the spec say) about |
See also #7310 (comment)
And the following comment:
(Both @svgeesus) |
Yes, matching |
And for the sake of the record, for me who has no idea what (I came here investigating especially this use-case) |
@yairEO from Serializing Relative Color Functions :
So the result of a Or did you mean an RCS where the origin color is |
My question is this use-case: div{ color:red; background:rgb(from currentColor r g b / 50%); } |
Yeah that would serialize as specified; it can't fully resolve because the value of the color property could be different on child elements or child pseudo-elements. |
This needs explicit spec text for resolving the RCS value when
|
The CSS Working Group just discussed
The full IRC log of that discussion<fantasai> Topic: Relative Color Syntax<fantasai> github: https://github.com//issues/7978 <fantasai> chris: problem was using base color as ?? <fantasai> chris: I added spec text similar to color-mix() <fantasai> chris: if that's okay by everyone we have solved the issue <fantasai> TabAtkins: Great for me <fantasai> Rossen_: Anyone else? <TabAtkins> s/using base color as ??/specifying base color as currentcolor/ <fantasai> RESOLVED: Accept Chris's proposal <lea> +1 |
https://www.w3.org/TR/css-color-5/#relative-colors
https://www.w3.org/TR/css-color-5/#serial-relative-color
This came up as an Interop 2023 proposal, and there is an implementation in WebKit, and we were wondering if this is ready to ship?
cc @svgeesus @emilio @lilles
The text was updated successfully, but these errors were encountered: