- From: Chris Lilley via GitHub <sysbot+gh@w3.org>
- Date: Tue, 10 Oct 2023 14:01:58 +0000
- To: public-css-archive@w3.org
As part of dealing with [this issue](https://github.com/w3c/csswg-drafts/issues/9445): - https://github.com/w3c/csswg-drafts/issues/9445 I looked again at the [definition of `<color>`](https://drafts.csswg.org/css-color-5/#typedef-color) and in particular [`<absolute-color-base>`](https://drafts.csswg.org/css-color-5/#typedef-absolute-color-base) which is used, for example, in the definition of the [`override-colors`](https://drafts.csswg.org/css-fonts-4/#descdef-font-palette-values-override-colors) descriptor in [`@font-palette-values`](https://drafts.csswg.org/css-fonts-4/#at-ruledef-font-palette-values). [`<absolute-color-base>`](https://drafts.csswg.org/css-color-5/#typedef-absolute-color-base) is a subset of [`<color>`](https://drafts.csswg.org/css-color-5/#typedef-color) which excludes the following values, all of which have special handling (like depending on layout, [resolving late](https://drafts.csswg.org/css-color-4/#resolving-other-colors), [not having a defined colorimetric interpretation](https://drafts.csswg.org/css-color-5/#resolving-device-cmyk-values)): - [`currentColor`](https://drafts.csswg.org/css-color-4/#valdef-color-currentcolor) - [`<system-color>`](https://drafts.csswg.org/css-color-4/#typedef-system-color) - [`<device-cmyk()>`](https://drafts.csswg.org/css-color-5/#funcdef-device-cmyk) A consequence of adding `light-dark()` directly to `<color>` rather than to `<absolute-color-base>` is that it can't be used in, for example, `override-colors`. I suspect this was unintentional, and propose to add it to `<absolute-color-base>` instead (along with `color-mix()` which is also missing from the grammar. @emilio @bramus was the intent to exclude `light-dark()` from use in `override-colors`? Or was that unintentional and I should move it? -- GitHub Notification of comment by svgeesus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7561#issuecomment-1755492041 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 10 October 2023 14:02:00 UTC