Open romainmenke opened 5 months ago
I can even imagine a keyword for this:
opaque
which has a value ofrgb(none none none / 100%)
That would indeed be a nice addition to the existing transparent
(which, if we were defining it today, would have been better as rgb(none none none / 0%)
https://github.com/w3c/csswg-drafts/issues/10151#issuecomment-2052685363
@LeaVerou said in the context of preserving
none
in color space conversion:I like this, I think it is useful. It allows authors to get the full color of one side of an interpolation without knowing anything about that color.
Example:
The author might not know what the other color or interpolation space is. Setting a color with all channels to
none
creates a reliable way to get thatpink
.I can even imagine a keyword for this:
opaque
which has a value ofrgb(none none none / 100%)