Skip to content

[css-fonts-4] Inconsistent order of override-colors precedence #7026

@drott

Description

@drott

https://drafts.csswg.org/css-fonts-4/#override-color

If the keys of multiple distinct key/value pairs identify the same color index (either by name or by integer), the first key is used for the purposes of rendering. However, for serialization purposes, both key/value pairs are present.

IMO this seems inconsistent with the usual ways of CSS in which later declarations override earlier ones. For the sake of consistency I suggest to change that to the last indexed override's value prevailing.

Was there some context that I missed for why it was defined this way around?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions