A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.chrome.com/docs/devtools/rendering/emulate-css below:

Emulate CSS media features | Chrome DevTools

Emulate CSS media features

Stay organized with collections Save and categorize content based on your preferences.

Emulate various CSS media features with this reference of emulation options on the Rendering tab.

The prefers-color-scheme CSS media feature indicates if the user prefers light or dark color scheme.

To emulate this condition:

  1. On the prefers-color-scheme page, open the Rendering tab.
  2. Under the Emulate CSS media feature prefers-color-scheme, select one of the following from the drop-down list:

  3. refresh Reload the page. For example:

The print media query controls how your page looks when printed.

To force your page into print preview mode:

  1. Open the Rendering tab and under Emulate CSS media type select print.

  2. From here, you can view and change your CSS, like any other web page. See Get Started With Viewing And Changing CSS.

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:

  1. Open the Rendering tab.
  2. Under the Emulate CSS media feature forced-colors, select one of the following from the drop-down list:

With forced-colors:active emulated:

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:

  1. Open the Rendering tab.
  2. Under the Emulate CSS media feature prefers-contrast, select one of the following from the drop-down list:

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:

  1. Open the Rendering tab on this demo and try scrolling to see various animations.
  2. Under the Emulate CSS media feature prefers-reduced-motion, select prefers-reduced-motion:reduce.
  3. Try scrolling again.
Emulate CSS media feature prefers-reduced-transparency

The prefers-reduced-transparency CSS media feature indicates if the user requested to reduce the transparent or translucent layer effects used on the device.

The prefers-reduced-transparency feature is available from Chrome 118 and lets you adapt web content to user-selected preference for reduced transparency in the OS, such as the Reduce transparency setting on macOS.

To emulate this condition:

  1. Open the Rendering tab.
  2. Under the Emulate CSS media feature prefers-reduced-transparency, select prefers-reduced-transparency: reduce.
  3. Check if your page displays correctly.

The color-gamut CSS media feature indicates which range of colors the user agent and the output device support.

To emulate this condition:

  1. Open the Rendering tab.
  2. Under the Emulate CSS media feature color-gamut, select one of the following from the drop-down list:

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-04-13 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-04-13 UTC."],[],[]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4