Skip to content

Commit ef1eb76

Browse files
committed
Functions and relative lengths in palettes are evaluated within the root element's context
Fixes w3c#6631.
1 parent bb34e39 commit ef1eb76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css-fonts-4/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6272,6 +6272,10 @@ User-defined font color palettes: The ''@font-palette-values'' rule</h3>
62726272
a palette which has missing colors. If colors would be missing, they are taken
62736273
from the palette within the font identified by the 'base-palette' descriptor.
62746274

6275+
Functions such as ''calc()'', ''var()'', and ''env()'' are valid within the braces of a
6276+
''@font-palette-values'' rule. They are evaluated within the context of the root
6277+
element. Relative units are also evaluated within the context of the root element.
6278+
62756279
The ''@font-palette-values'' rule consists of the ''@font-palette-values'' at-keyword
62766280
followed by a block of descriptor declarations.
62776281
It has the following syntax:

0 commit comments

Comments
 (0)