Skip to content

[css-fonts] issues with font-family descriptor in @font-palette-values rule #1669

@jfkthame

Description

@jfkthame

The @font-palette-values rule has a font-family descriptor[1] that is supposed to associate it with a particular font ("This palette will only ever be applied to the font with this name").

However, this seems problematic to me, as font-family does not identify "a particular font" but a family that may contain an arbitrary number of faces; and (thanks to the magic of unicode-range) any given face might refer to an arbitrary number of font resources. Each of these may have its own palettes.

Therefore, when the base-palette descriptor[2] "specifies a palette in the font...", it is (AFAICS) not fully specified which font resource (and therefore which palette) is meant.

[1] https://www.w3.org/TR/2017/WD-css-fonts-4-20170711/#font-family-2-desc
[2] https://www.w3.org/TR/2017/WD-css-fonts-4-20170711/#base-palette-desc

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions