Re: [csswg-drafts] [css-ui-4] Authors should have access to accent-color value to use in their code (#5900)

Exposing the native accent color came up again in https://github.com/whatwg/html/issues/7993. I think there are two different alternatives:

 * Exposing the native accent color as a system color.
 * Add a magic keyword a-la-`currentColor`, which resolves to the resolved `accent-color`.

I think the fingerprinting concerns can be addressed by UAs the same way we address them for all other system colors (e.g., Firefox uses a fixed blue-ish accent color on Windows).

So, given this, I think I'd propose at least to expose a named system color pair for this. If the need arises in the future, adding a magic keyword can be done on top (though IMO CSS variables would do).

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


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

Received on Wednesday, 8 June 2022 15:23:31 UTC