Re: [csswg-drafts] `<absolute-color-base>` not enough anymore (#9555)

Chrome and Firefox do not currently support `device-cymk()` and `contrast-color()`. Therefore only `currentcolor`, `<system-color>`, `light-dark()`, can be tested.

In the relative color syntax, Chrome accepts all absolute colors. Firefox only accepts `currentcolor`.

In `override-colors`, Chrome and Firefox do not accept absolute colors, as [specified](https://drafts.csswg.org/css-fonts-4/#descdef-font-palette-values-override-colors) (and presumably motivated by [this comment](https://github.com/w3c/csswg-drafts/issues/7010#issuecomment-1035150270)):

  > The specified `<color>` must be an absolute color.

**nit:** adding *"otherwise it is **invalid**"* would be very handy to find it among the syntax rules defined in prose.

I would suspect that any relative color function should not accept absolute colors as argument. But both Chrome and Firefox accept any of them in `light-dark()`.

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


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

Received on Friday, 7 February 2025 08:03:29 UTC