Skip to content

Commit 9630076

Browse files
committed
[css-fonts-4] Add clarifying note, fix #6916
1 parent e6bac66 commit 9630076

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

css-fonts-4/Overview.bs

+9-1
Original file line numberDiff line numberDiff line change
@@ -7160,8 +7160,16 @@ User-defined font color palettes: The ''@font-palette-values'' rule</h3>
71607160

71617161
The <dfn>@font-palette-values</dfn> rule defines a color palette
71627162
and associates that color palette with a specific font.
7163-
This allows a web author to select arbitrary colors to use inside a color font
7163+
This allows a web author to select arbitrary <<color>>s to use inside a color font
71647164
rather than being limited to the preexisting palettes inside font files.
7165+
7166+
Note: The OpenType 'CPAL' table is restricted to sRGB colors.
7167+
The <<color>>s in ''@font-palette-values'' allow any CSS color.
7168+
Some implementations currently use APIs which are restricted to sRGB
7169+
and may therefore map the specified colors to sRGB.
7170+
This is expected to be a temporary limitation.
7171+
Authors should not rely on this mapping to sRGB.
7172+
71657173
In addition, this rule's association with a specific font
71667174
allows a name of a palette to apply differently to different fonts,
71677175
which allows similar colors to be used across multiple fonts

0 commit comments

Comments
 (0)