Media Queries: prefers-contrast feature

Adds the 'prefers-contrast' feature, which lets authors adapt web content to user-selected level of contrast in the OS, such as increased contrast mode on macOS and high contrast mode on Windows. Valid options are 'more', 'less', 'forced', or 'no-preference'.

Motivation

Windows and macOS have support for contrast-related features. This media query will allow for authors to respond to such choices.

Specification

Editor's draft

Status in Chromium

Blink>CSS


In development (tracking bug)

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

prefers-contrast, contrast, css,

Last updated on 2020-10-25