Skip to content

[css-fonts] Should font-palette be reset by the font shorthand? #7832

Closed
@jfkthame

Description

@jfkthame

Currently, the spec for the font shorthand says that:

All subproperties of the 'font' property are first reset to their initial values, including ... 'font-palette'.

However, it appears that neither the WebKit nor Blink implementations actually do this:

> document.body.style.fontPalette = "dark"
< 'dark'
> document.body.style.font = "12px sans-serif"
< '12px sans-serif'
> window.getComputedStyle(document.body).fontPalette
< 'dark'

Should the spec be revised to reflect implementation reality here, or should this simply be regarded as a bug in those browsers?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions