Skip to content

[css-fonts] @font-palette-values rule has no object model #1655

Closed
@svgeesus

Description

@svgeesus

https://drafts.csswg.org/css-fonts-4/#font-palette-values

This rule needs an enumeration added, for example

partial interface CSSRule {
  const unsigned short FONT_PALETTE_VALUES_RULE = 15;
}

and a definition of the interface, something like:

interface CSSFontPaletteValuesRule : CSSRule {
  attribute CSSOMString fontFamily;
  attribute CSSOMString basePalette;
  attribute CSSOMRGBColor integer;
}

???? No idea how in WebIDL to declare an unbounded set of descriptors whose names are the set of integers. Would that be a map?

Nor how to declare that it is <color> not just the DOM 2 CSS RGBColor.

Also, those are really bad descriptor names, overly generic.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions