GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — PreferenceObject: validValues property - Web APIs | MDN

PreferenceObject: validValues 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 validValues read-only property of the PreferenceObject interface returns a read-only array of values that are accepted by the override.

validValues

An array containing the valid values to override the PreferenceObject value with.

Examples

Basic usage

This example demonstrates how to log all possible contrast values.

js
console.log(navigator.preferences.contrast.validValues);

Specifications

Specification
Media Queries Level 5
# valid-values-attribute

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on Mar 9, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.