Skip to content

[css-fonts-4] font-palette:light and font-palette:dark are a bit disingenuous #7048

@litherum

Description

@litherum

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as RetractedWhen the person who raised the issue thinks that there's no issue after all.css-fonts-4Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions