diff --git a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_dark.png b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_dark.png index d7d6e0830557ad0..17644036f2775a5 100644 Binary files a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_dark.png and b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_dark.png differ diff --git a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_light.png b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_light.png index cbfb4a215ce9881..91655d3774a956c 100644 Binary files a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_light.png and b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_light.png differ diff --git a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_null.png b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_null.png index f04d1697234e165..159d2338a28b961 100644 Binary files a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_null.png and b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/color_scheme_null.png differ diff --git a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/index.html b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/index.html index 9f23597993d7cbf..d8bf81e8191473a 100644 --- a/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/index.html +++ b/files/en-us/tools/page_inspector/how_to/examine_and_edit_css/index.html @@ -22,7 +22,7 @@
prefers-color-scheme
media rules.When on, any rules defined for printing the page will be displayed similar to the "Print Preview" mode that many word processing applications provide.
-You can use the color scheme simulator to see how the styles display based on the prefers-color-scheme
media query, if it is defined for the page. The color scheme simulator has four states, which you can cycle through by clicking the button repeatedly:
The color scheme simulator buttons can be used to test the rendering of styles based on the prefers-color-scheme
media query (if any are defined for the page). There are two buttons, which enable the light and dark preference respectively. Selecting either button deselects the other, and if neither button is selected then the simulator does not set a preference.
light |
- The user prefers a light interface. | +The prefers-color-scheme media feature is set to light . |
||
+ | dark |
- The user prefers a dark interface. | +The prefers-color-scheme media feature is set to dark . |
Note that the first three states of the button may be difficult to distinguish visually. They typically produce a similar effect.
+Note that if the operating system mode is set to a particular mode, then simulating that mode will not change page rendering (i.e. simulating dark mode when in dark mode will not change the display).
+ +If privacy.resistFingerprinting
has been set true, the prefers-color-scheme
preference is forced to light
. You must set privacy.resistFingerprinting
to false in order to use this feature.
As of Firefox 72, you must set devtools.inspector.color-scheme-simulation.enabled
to true in the Configuration Editor to enable this feature.
If you have set privacy.resistFingerprinting
to true, prefers-color-scheme
preference is overridden to light
. In order to use this simulator, you must set privacy.resistFingerprinting
to false.
Before Firefox 87 this feature is behind the preference devtools.inspector.color-scheme-simulation.enabled
.
privacy.resistFingerprinting
is set to true, {{cssxref("@media/prefers-color-scheme", "prefers-color-scheme")}} always returns light
.ui.systemUsesDarkTheme
can be set to 0
for light
, 1
for dark
, 2
for no-preference
. Any other value causes Firefox to return light
.Light and dark modes can also be simulated using the Firefox Page Inspector. +
Light and dark modes can also be simulated using the Firefox Page Inspector.