-
Notifications
You must be signed in to change notification settings - Fork 756
Description
The font can indicate certain palettes as USABLE_WITH_LIGHT_BACKGROUND or USABLE_WITH_DARK_BACKGROUND.
CSS says:
light: Some color font formats include metadata marking certain palettes as applicable on a light (close to white) background. This keyword causes the user-agent to use the first available palette in the font file marked this way.
However, a palette that is usable on a light background will probably involve dark colors. Therefore, when you say font-palette: light you are usually actually specifying a color palette whose colors are dark.
Switching the meaning of light and dark is probably not the right solution, though - the opentype flags say nothing about the foreground colors of the palettes. Maybe we should just copy the names from OpenType and rename light to usable-with-light-background? Or usable-with-background(light)?