Adds the 'prefers-contrast' media query feature, which lets authors adapt web content to user-selected levels of contrast in the OS, such as Increased Contrast mode on macOS and Contrast Themes on Windows. Valid options are 'more', 'less', 'custom', or 'no-preference'.
If Increased Contrast is enabled on Mac or High Contrast is enabled on Linux, 'prefers-contrast' and 'prefers-contrast: more' will evaluate to true.
If Forced Colors mode is enabled on Windows, 'prefers-contrast' will evaluate to true, in addition to one of 'prefers-contrast: more', 'prefers-contrast: less', or 'prefers-contrast: custom'. Using WCAG definitions [1], and in collaboration with Windows accessibility experts, we have decided to match:
'prefers-contrast: less' if the contrast ratio between the foreground and background color is 2.5:1 or less;
'prefers-contrast: custom' for all other contrast ratios.
These ratios will act as an experimental baseline that we can adjust based on user feedback.
[1] https://www.w3.org/WAI/WCAG21/Understanding/contrast-enhanced
Security
This feature can be used for fingerprinting as it exposes a user preference.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/MN2PR00MB068552029A57B9369AE9165AF2F19%40MN2PR00MB0685.namprd00.prod.outlook.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADizRgZHhbWsEan4azEUCAcw-XOot4ZWvwUzuTAenqC%2BoxaGJA%40mail.gmail.com.
LGTM1On Wed, Aug 4, 2021 at 11:22 PM 'Mathias Bynens' via blink-dev <blin...@chromium.org> wrote:
The Intent* email template includes a “Debuggability” section, which is missing in this case. How would web developers debug this new functionality through DevTools? See https://goo.gle/devtools-checklist for context.The relevant bug seems to be https://bugs.chromium.org/p/chromium/issues/detail?id=1130859 — could you please clarify what the latest status is?
On Thu, Aug 5, 2021 at 4:55 AM 'Sara Tang' via blink-dev <blin...@chromium.org> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/MN2PR00MB068552029A57B9369AE9165AF2F19%40MN2PR00MB0685.namprd00.prod.outlook.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
In particular, is there a way to link the exposure of new DevTools features to blink feature flags, or do DevTools features typically land after platform features are enabled by default?
Hi Mathias,
The plan would be to expose prefers-contrast as a DevTools emulation: 1139777 - DevTools: emulate prefers-contrast CSS media feature - chromium. In particular, this emulation will follow the pattern for existing media features, such as prefers-color-scheme and prefers-reduced-motion.
The forced colors emulation bug that you had linked to is mostly orthogonal to this one. Although, since they are related, we would need to determine how the forced colors emulation should interact with prefers-contrast.
We can begin development on an emulation for prefers-contrast immediately. However, we'd like to know more about how to ship the emulation of the media query.
In particular, is there a way to link the exposure of new DevTools features to blink feature flags, or do DevTools features typically land after platform features are enabled by default?
Thanks,Sara
From: Alex Russell <sligh...@chromium.org>
Sent: Thursday, August 5, 2021 1:17 PM
To: blink-dev <blin...@chromium.org>
Cc: Chris Harrelson <chri...@chromium.org>; Sara Tang <Sara...@microsoft.com>; blin...@chromium.org <blin...@chromium.org>; Alison Maher <Alison...@microsoft.com>; Daniel Libby <dli...@microsoft.com>; chang...@google.com <chang...@google.com>; Johan Bay <jo...@google.com>; Mathias Bynens <mt...@google.com>
Subject: [EXTERNAL] Re: [blink-dev] Intent to Ship: Media Queries: prefers-contrast feature
LGTM2
On Thursday, August 5, 2021 at 12:28:45 PM UTC-7 Chris Harrelson wrote:
LGTM1
On Wed, Aug 4, 2021 at 11:22 PM 'Mathias Bynens' via blink-dev <blin...@chromium.org> wrote:
The Intent* email template includes a “Debuggability” section, which is missing in this case. How would web developers debug this new functionality through DevTools? See https://goo.gle/devtools-checklist for context.
The relevant bug seems to be https://bugs.chromium.org/p/chromium/issues/detail?id=1130859 — could you please clarify what the latest status is?
On Thu, Aug 5, 2021 at 4:55 AM 'Sara Tang' via blink-dev <blin...@chromium.org> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/MN2PR00MB068552029A57B9369AE9165AF2F19%40MN2PR00MB0685.namprd00.prod.outlook.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
LGTM3 to ship the media query.
Please continue working with the devtools team to make it easy to develop for.
/Daniel
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CADizRgYWMUKut_JpdVewBx8KtETxdtRuF4LXd4jfVat3_YnXfA%40mail.gmail.com.