Skip to content

Commit c74c007

Browse files
committed
[css-color] treat currentcolor as inherit at computed value time as well
1 parent 5ecbaad commit c74c007

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

css-color/Overview.bs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ Resolving Color values</h2>
170170

171171
<ul>
172172
<li>
173-
The computed value of the ''<color>/currentcolor'' keyword is ''<color>/currentcolor''.
173+
If ''<color>/currentcolor'' is the specified value of the 'color' property,
174+
it is treated as if the specified value was ''inherit''.
174175

175-
If ''<color>/currentcolor'' is used as the value of the 'color' property,
176-
the used value is the same as if ''inherit'' had been specified instead.
177176
For all other properties that accept a <<color>>,
178-
the used value of ''<color>/currentcolor'' is the same as
177+
the computed value of the ''<color>/currentcolor'' keyword is ''<color>/currentcolor'',
178+
and the used value of ''<color>/currentcolor'' is the same as
179179
the used value of the 'color' property on the same element.
180180

181181
Note: This means that if the ''<color>/currentcolor'' value is inherited,

0 commit comments

Comments
 (0)