PreferencesManager: contrast property
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
The contrast read-only property of the PreferencesManager interface returns the PreferenceObject used to override the user's preference for the color scheme of the site. Its valid values are more, less, and no-preference.
Value
A PreferenceObject used to override the user's preference for the color scheme of the site.
Specifications
| Specification |
|---|
| Media Queries Level 5> # contrast-attribute> |