Skip to content

[css-fonts-4] Palette leakage needs tests #4252

@svgeesus

Description

@svgeesus

An author-defined font color palette is only available to the documents that reference it. Using an author-defined color palette outside of the documents that reference it would constitute a security leak since the contents of one page would be able to affect other pages, something an attacker could use as an attack vector.
https://drafts.csswg.org/css-fonts-4/#font-palette-values

This is easily testable (two iframes, referencing the same font, one also has an @font-palette-values rule).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions