8000 [css-fonts] [palettes] CSSFontPaletteValuesRule's maplike doesn't make much sense · Issue #6624 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-fonts] [palettes] CSSFontPaletteValuesRule's maplike doesn't make much sense #6624

@litherum

Description

@litherum

An example of @font-palette-values looks like this:

@font-palette-values Cooler {
    font-family: Bixa;
    base-palette: 1;
    override-color:
        1 #7EB7E4;
}

The IDL looks like this:

interface CSSFontPaletteValuesRule : CSSRule {
    maplike<unsigned long, CSSOMString>;
    attribute CSSOMString fontFamily;
    attribute CSSOMString basePalette;
};

Making it maplike doesn't make a lot of sense now that we have override-color. It used to make sense when we had a previous grammar that looked like this:

@font-palette-values Cooler {
    font-family: Bixa;
    base-palette: 1;
    1: #7EB7E4;
    2: #8EB7E4;
}

... But we replaced that weird syntax with override-color, so I think an IDL like this makes more sense:

interface CSSFontPaletteValuesRule : CSSRule {
    attribute CSSOMString fontFamily;
    attribute CSSOMString basePalette;
    attribute CSSOMString overrideColor;
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0