Skip to content

Commit 9f28c14

Browse files
committed
[css-color-4] Specify resolved RCS where origin color is currentColor, w3c#7978
1 parent 76d3f78 commit 9f28c14

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

css-color-5/Overview.bs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2317,7 +2317,19 @@ or any other color or monochrome output device which has been characterized.
23172317
color-mix-currentcolor-002.html
23182318
</wpt>
23192319

2320+
<h3 id="resolving-rcs">
2321+
Resolving Relative Color Syntax Values
2322+
</h3>
23202323

2324+
If all <<color>> parameters resolve
2325+
to the corresponding colors in their respective color spaces,
2326+
the computed value is the absolute <<color>> value,
2327+
in the specified RCS color space,
2328+
resolved according to [[css-color-4#resolving-color-values]].
2329+
Otherwise (if ''currentColor'' was used in the function),
2330+
the computed value is the Relative Color Syntax function
2331+
with each <<color>> parameter resolved according to [[css-color-4#resolving-color-values]],
2332+
thus preserving inheritance into child elements.
23212333

23222334
<h3 id="resolving-device-cmyk-values">
23232335
Resolving ''device-cmyk'' Values
@@ -2514,12 +2526,7 @@ is the same as that specified in
25142526
</h3>
25152527

25162528
The serialization of the result of a relative color function
2517-
is a <<color>>,
2518-
as defined in [[css-color-4#serializing-color-values]].
2519-
The form used
2520-
is the same as that used to specify
2521-
the relative color,
2522-
but using the absolute form.
2529+
is the resolved value.
25232530

25242531
<wpt>
25252532

0 commit comments

Comments
 (0)