PreferencesManager

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 PreferencesManager interface of the User Peferences API provides access to the various PreferenceObject objects.

The PreferencesManager interface inherits from EventTarget.

Instance properties

PreferencesManager.colorScheme Read only Experimental

A PreferenceObject used to override the user's preference for the color scheme of the site.

PreferencesManager.contrast Read only Experimental

A PreferenceObject used to override the user's preference for the contrast of the site.

PreferencesManager.reducedMotion Read only Experimental

A PreferenceObject used to override the user's preference for the reduced motion of the site.

PreferencesManager.reducedTransparency Read only Experimental

A PreferenceObject used to override the user's preference for the reduced transparency of the site.

PreferencesManager.reducedData Read only Experimental

A PreferenceObject used to override the user's preference for the reduced data of the site.

Specifications

Specification
Media Queries Level 5
# preference-manager

Browser compatibility