-
Notifications
You must be signed in to change notification settings - Fork 719
[css-color-adjust-1] Emojis in forced colors mode #8064
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking โSign up for GitHubโ, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a neat idea. Just two (sad) remarks about status quo from random passers-by:
So the only browser that passes this test is Mozilla Firefox on Windows 10. Google Chrome on Windows 10 let's us set the monochrome (or colourful) font only when forced with explicit
(This particular character โ ๐พ/๐พ๏ธ/๐พ๏ธ โ is not present in that tested "Emoji Presentation Sequences, v15.1" list. Using as illustration for semi-related reasons (*).) |
There are quite promising statements in recent Microsoft announcement about Segoe UI in Windows 11 regarding monochrome Emoji variant: https://microsoft.design/articles/bringing-new-emoji-to-windows-11 (tweet)
and
|
Thanks @myfonj for the update here, adding it to the agenda to see if it is something we should incorporate into the forced colors mode spec |
To some extent this also depends on whether the emoji font is vector or raster, which depends on the platform. Changing the colors of pixels in a raster image (apart from simple grey-scaling, which is unlikely to look good in all cases) is harder than changing the colors in a palette or selecting an alternate palette. |
The CSS Working Group just discussed
The full IRC log of that discussion |
To summarize, CSS authors can add styles like this. :root, input, button, textarea, select {
font-variant-emoji: emoji;
}
@media (forced-colors: active) {
:root, input, button, textarea, select {
font-variant-emoji: normal;
}
} |
Authors could do this, but the resolution was to have browsers fall back to monochrome emojis by default in this mode - this behavior, though, has not yet been implemented |
Closing as edits have landed with [[css-color-adjust-1] Emojis in forced colors mode #12173](#12173) |
Currently in forced colors mode, emojis are not adjusted (similarly to images).
For example, when using the following emojis: ๐ค๐ก๐๐โ๐คทโโ๏ธ๐๐๐ค๐ฎ๐๐ป
Blink and Gecko will produce the following in a dark forced color scheme:

However, in EdgeHTML and most Windows apps, emojis will fall back to use a monochrome variant of the emoji colored in the Windows High Contrast text color (i.e.

CanvasText
):The monochrome variant would provide higher levels of contrast and parity with how Windows generally handles emojis in High Contrast. Is this something we should consider recommending or aligning with in the spec?
The text was updated successfully, but these errors were encountered: