Re: [csswg-drafts] [css-fonts-5] Allow to define palette colors outside of `@font-palette-values` (#9046)

If we would start from scratch and there would be no existing `font-palette` property, I agree this is a viable proposal. 

But since we have existing content and and existing definition of`font-palette` I find this proposal lacks in compatibility. We would define a new `font-palette-color` property that partially duplicates behavior of the existing `font-palette` property and has a complicated interaction with it when both would be present.

Compared to using references to the `@font-palette-values` rules, the property becomes very verbose, and needs repeating the full palette color set text over the full set of palette colors (up to 65k of them) if the definition differs from the font. IMO the verbosity would not be justified as control over each individual color from the palette is likely a less frequent use case compared to switching between fixed and reusable full palette definitions in @-rules.

-- 
GitHub Notification of comment by drott
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9046#issuecomment-1700975370 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 31 August 2023 12:47:17 UTC