You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then the styles of both divs have a computed color property of currentColor by 1.
Now, if I want to find out what color to use for the second div, I consult 2. to learn that
the I need to use the inherited value of the color property, which, by 3., is the computed
value of the color property on the parent element. And we've already seen that that is currentColor.
How do I draw with currentColor ?
I believe that browsers don't implement 3. properly and inherit the used value of the color property instead.
The question gets more entertaining when currentColor is inside expressions with color-mix or other color functions.
The text was updated successfully, but these errors were encountered:
matthiasclasen
changed the title
[css-color-4] Clarify used value of currentColor
[css-color-5] Clarify used value of currentColor
May 18, 2024
matthiasclasen
changed the title
[css-color-5] Clarify used value of currentColor
[css-color-4] Clarify used value of currentColor
May 18, 2024
In css-color-4, we learn
In css-cascade-5, we learn
So if I have
Then the styles of both divs have a computed color property of
currentColor
by 1.Now, if I want to find out what color to use for the second div, I consult 2. to learn that
the I need to use the inherited value of the color property, which, by 3., is the computed
value of the color property on the parent element. And we've already seen that that is
currentColor
.How do I draw with
currentColor
?I believe that browsers don't implement 3. properly and inherit the used value of the color property instead.
The question gets more entertaining when currentColor is inside expressions with color-mix or other color functions.
The text was updated successfully, but these errors were encountered: