File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -7160,8 +7160,16 @@ User-defined font color palettes: The ''@font-palette-values'' rule</h3>
7160
7160
7161
7161
The <dfn>@font-palette-values</dfn> rule defines a color palette
7162
7162
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
7164
7164
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
+
7165
7173
In addition, this rule's association with a specific font
7166
7174
allows a name of a palette to apply differently to different fonts,
7167
7175
which allows similar colors to be used across multiple fonts
You can’t perform that action at this time.
0 commit comments