Skip to content

Commit 6cbf370

Browse files
committed
[css-fonts-4] Clarify that non-absolute colors in override-colors make the whole descriptor invalid, not just the individual color #9555
1 parent a230c3a commit 6cbf370

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

css-fonts-4/Overview.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7901,19 +7901,20 @@ Overriding a colors from a palette: The 'override-colors!!descriptor' descriptor
79017901
This descriptor overrides colors
79027902
to the initial color palette represented by this ''@font-palette-values'' rule.
79037903

7904-
The specified <<color>> must be an
7905-
[=absolute color=],
7906-
otherwise it is invalid.
7907-
79087904
The '@font-palette-values/override-colors' descriptor takes
79097905
a comma-separated list of palette index entries and colors.
79107906
Each item in the comma-separated list represents a tuple of
79117907
an entry into the palette and a color to replace it with.
79127908

7909+
Each specified <<color>> must be an
7910+
[=absolute color=],
7911+
otherwise the descriptor is invalid.
7912+
79137913
For each key/value pair in the value of this descriptor,
79147914
the color with that key in the initial palette (i.e. by using the 'base-palette' descriptor)
79157915
is overwritten by the color specified in this descriptor's value.
7916-
A key that is outside the range of indices of the initial palette is ignored.
7916+
A key that is outside the range of indices of the initial palette is ignored,
7917+
but does not make the descriptor invalid.
79177918

79187919
Palette index entries
79197920
in the ''@font-palette-values/override-colors'' descriptor

0 commit comments

Comments
 (0)