Emulate CSS media features
Emulate various CSS media features with this reference of emulation options on the Rendering tab.
prefers-color-scheme
Emulate CSS media feature The prefers-color-scheme
CSS media feature indicates if the user prefers light or dark color scheme.
To emulate this condition:
On the prefers-color-scheme page, open the Rendering tab.
Under the Emulate CSS media feature
prefers-color-scheme
, select one of the following from the dropdown list:- No emulation
prefers-color-scheme:light
prefers-color-scheme:dark
Reload the page. For example:
Emulate CSS media type (Enable print preview)
The print media query controls how your page looks when printed.
To force your page into print preview mode:
Open the Rendering tab and under Emulate CSS media type select print.
From here, you can view and change your CSS, like any other web page. See Get Started With Viewing And Changing CSS.
forced-colors
Emulate CSS media feature The forced-colors
CSS media feature indicates if the user agent enabled a forced colors mode. An example of a forced colors mode is Windows High Contrast.
To emulate this condition:
Under the Emulate CSS media feature
forced-colors
, select one of the following from the dropdown list:- No emulation
forced-colors:active
forced-colors:none
With forced-colors:active
emulated:
prefers-contrast
Emulate CSS media feature The prefers-contrast
CSS media feature indicates if the user requested the web content to present with a higher, lower, or specific contrast value.
To emulate this condition:
Under the Emulate CSS media feature
prefers-contrast
, select one of the following from the dropdown list:- No emulation
prefers-contrast:more
prefers-contrast:less
prefers-contrast:custom
prefers-reduced-motion
Emulate CSS media feature The prefers-reduced-motion
CSS media feature indicates if the user has requested to minimize the amount of motion on a page.
To emulate this condition:
- Open the Rendering tab on this demo and try scrolling to see various animations.
- Under the Emulate CSS media feature
prefers-reduced-motion
, selectprefers-reduced-motion:reduce
. - Try scrolling again.
color-gamut
Emulate CSS media feature The color-gamut
CSS media feature indicates which range of colors the user agent and the output device support.
To emulate this condition:
Under the Emulate CSS media feature
color-gamut
, select one of the following from the dropdown list:- No emulation
color-gamut:srgb
—approximately sRGB gamut or morecolor-gamut:p3
—approximately the gamut specified in Display P3 Color Space or morecolor-gamut:rec2020
—approximately the gamut specified in Rec. 2020 or more