Skip to content

Commit 230a994

Browse files
committed
[css-fonts-4] fix #1669 palettes in compound fonts
1 parent 49c8841 commit 230a994

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

css-fonts-4/Overview.bs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5592,7 +5592,20 @@ User-defined font color palettes: The ''@font-palette-values'' rule</h3>
55925592
and do not apply to document language elements.
55935593
When a given descriptor occurs multiple times in a given ''@font-palette-values'' rule,
55945594
only the last descriptor declaration is used
5595-
and all prior declarations for that descriptor are ignored.
5595+
and all prior declarations for that descriptor are ignored.
5596+
5597+
Each of these palettes are applied
5598+
to each @font-face that share a family name.
5599+
5600+
Note: In the case where a family name is shared
5601+
between multiple physical fonts,
5602+
(such as when a compound font is created, using `unicode-range`),
5603+
and if those fonts have different palettes,
5604+
the result of specifying a partial palette
5605+
using ''@font-palette-values''
5606+
is unlikely to be what the author intended.
5607+
In this case,
5608+
it is better to supply a complete palette definition.
55965609

55975610
A given set of ''@font-palette-values'' rules
55985611
define which author-defined palettes are available for use

0 commit comments

Comments
 (0)