Skip to content

Commit 2c9abcf

Browse files
committed
[css-color-6] Defined resolving color-layers(), including with currentColor #8431
1 parent 73b4fff commit 2c9abcf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

css-color-6/Overview.bs

+12
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,18 @@ Layering Multiple Colors: the ''color-layers()'' function {#colorlayers}
410410

411411
</div>
412412

413+
<h3 id="resolving-layers">Resolving ''color-layers()'' values</h3>
414+
415+
If all <<color>> parameters resolve
416+
to the corresponding colors in their respective color spaces,
417+
the computed value is the composited color
418+
resolved according to [[css-color-4#resolving-color-values]].
419+
Otherwise (if ''currentColor'' was used in the function),
420+
the computed value is the ''color-layers()'' function
421+
with an explicit <<blend-mode>> and
422+
with each component [=computed|computed value=],
423+
thus preserving inheritance into child elements.
424+
413425

414426
<!--
415427
██████ ████████ ████████ ████ ███ ██

0 commit comments

Comments
 (0)