Relative color from currentcolor
Hello everyone,
On MDN's relative color page (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_colors/Relative_colors) it's stated that
But when I try to do something like this :
First and second
Does anyone have any idea if I'm doing something wrong ? Or do I missing something ? :think:
PS: I tried
On MDN's relative color page (https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_colors/Relative_colors) it's stated that
origin-color should be any valid color, including currentcolor.But when I try to do something like this :
First and second
background-color work fine, but not the third one (see attachment).Does anyone have any idea if I'm doing something wrong ? Or do I missing something ? :think:
PS: I tried
color with both lower and upper case c
MDN Web Docs
The CSS colors module defines relative color syntax, which allows a CSS value to be defined relative to another color. This is a powerful feature that enables easy creation of complements to existing colors — such as lighter, darker, saturated, semi-transparent, or inverted variants — enabling more effective color palette creation.

