- From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
- Date: Thu, 16 Sep 2021 23:16:28 +0000
- To: public-css-archive@w3.org
litherum has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-fonts] CSSFontPaletteValuesRule's maplike doesn't make much sense == An example of `@font-palette-values` [looks like this](https://drafts.csswg.org/css-fonts/#font-palette-values): ``` @font-palette-values Cooler { font-family: Bixa; base-palette: 1; override-color: 1 #7EB7E4; } ``` The IDL [looks like this](https://drafts.csswg.org/css-fonts/#om-fontpalettevalues): ``` 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; }; ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6624 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 16 September 2021 23:16:30 UTC