Re: [csswg-drafts] [css-color] Consider exposing native accent color as a system color keyword. (#7347)

For macOS and Linux, the color comes from the OS. For Windows we use an algorithm that seemed to come from Microsoft [here](https://searchfox.org/mozilla-central/rev/c11f54459452dd2f9ab2f9bec4ae03127897d256/widget/windows/nsLookAndFeel.cpp#726-742). For Android, our heuristic matches the one for checkbox check colors and so on with custom accent color, which is "white unless contrast is not good, else a darkened enough version of the accent color" ([here](https://searchfox.org/mozilla-central/rev/c11f54459452dd2f9ab2f9bec4ae03127897d256/widget/ThemeColors.cpp#201-233)).

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


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

Received on Wednesday, 20 July 2022 09:49:51 UTC