Re: [csswg-drafts] [css-fonts] @font-palette-values base-palette descriptor should have a `none` value. (#7780)

@emilio Are you thinking about this case from an CSSOM perspective or so? (Is there a CSSOM representation of `@font-palette-values`? FWIW, the 0-indexed palette in a font is the default palette. To render COLRv0 or COLRv1 glyphs, you can't render without a palette, unless the glyphs only contain the color index `0xFFFF` which represents the foreground color. I haven't tested whether our font stack handles fonts without a CPAL table or without a default palette correctly - so in that sense, I am not sure it would be desirable to reset this state to: "Don't refer to any base palette.". What should be the behaviour if @font-palette-values then sparsely defines a new palette, but some indices are missing - should the corresponding parts of the glyphs be rendered with transparent color?


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


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

Received on Friday, 23 September 2022 09:31:59 UTC