-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
Description
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;
};
svgeesus