You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(emulate media): document "no-preference" as deprecated (#32881)
Closes#32862.
`prefers-color-scheme: no-preference` was removed from browsers. This PR
marks it as deprecated in our docs and removes all mentions.
---------
Signed-off-by: Simon Knott <[email protected]>
Co-authored-by: Dmitry Gozman <[email protected]>
Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`,`'no-preference'`. Passing
1285
-
`null` disables color scheme emulation.
1275
+
Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media feature, supported values are `'light'` and`'dark'`. Passing
1276
+
`null` disables color scheme emulation.`'no-preference'` is deprecated.
Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`,`'no-preference'`. Passing
1293
-
`'Null'` disables color scheme emulation.
1283
+
Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media feature, supported values are `'light'` and`'dark'`. Passing
1284
+
`'Null'` disables color scheme emulation.`'no-preference'` is deprecated.
Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`,`'no-preference'`. See
642
+
Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media feature, supported values are `'light'` and`'dark'`. See
643
643
[`method: Page.emulateMedia`] for more details. Passing `null` resets emulation to system defaults. Defaults to `'light'`.
Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`,`'no-preference'`. See
649
+
Emulates [prefers-colors-scheme](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme) media feature, supported values are `'light'` and`'dark'`. See
650
650
[`method: Page.emulateMedia`] for more details. Passing `'null'` resets emulation to system defaults. Defaults to `'light'`.
**Note** you can only change geolocation for all pages in the context.
559
559
## Color Scheme and Media
560
560
561
-
Emulate the users `"colorScheme"`. Supported values are 'light', 'dark', 'no-preference'. You can also emulate the media type with [`method: Page.emulateMedia`].
561
+
Emulate the users `"colorScheme"`. Supported values are 'light' and 'dark'. You can also emulate the media type with [`method: Page.emulateMedia`].
Copy file name to clipboardExpand all lines: docs/src/test-use-options-js.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ export default defineConfig({
64
64
65
65
| Option | Description |
66
66
| :- | :- |
67
-
|[`property: TestOptions.colorScheme`]|[Emulates](./emulation.md#color-scheme-and-media)`'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`,`'no-preference'`|
67
+
|[`property: TestOptions.colorScheme`]|[Emulates](./emulation.md#color-scheme-and-media)`'prefers-colors-scheme'` media feature, supported values are `'light'` and`'dark'`|
0 commit comments