Skip to content

Commit 8a1813f

Browse files
drottsvgeesus
authored andcommitted
[css-fonts-4] Use last key/palette index in override-colors, #7026
Improve consistency with other parts of CSS where later declarations override earlier ones, fixes #7026.
1 parent ad056f4 commit 8a1813f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

css-fonts-4/Overview.bs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6557,7 +6557,7 @@ Overriding a colors from a palette: The 'override-colors!!descriptor' descriptor
65576557
Integer values are zero-indexed.
65586558

65596559
If the keys of multiple distinct key/value pairs identify the same color index (either by name or by integer),
6560-
the first key is used for the purposes of rendering. However, for serialization purposes, both
6560+
the last key is used for the purposes of rendering. However, for serialization purposes, both
65616561
key/value pairs are present.
65626562

65636563
Note: This means that using 'font-palette' with the same value on two different elements

0 commit comments

Comments
 (0)