Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(emulate media): document "no-preference" as deprecated #32881

Merged
merged 4 commits into from
Oct 4, 2024

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Sep 30, 2024

Closes #32862.

prefers-color-scheme: no-preference was removed from browsers. This PR marks it as deprecated in our docs and removes all mentions.

@Skn0tt Skn0tt self-assigned this Sep 30, 2024
@@ -639,14 +639,14 @@ If no origin is specified, the username and password are sent to any servers upo
* langs: js, java
- `colorScheme` <null|[ColorScheme]<"light"|"dark"|"no-preference">>

Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See
Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'` and `'dark'`. See
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to keep it short, I didn't include the "no-preference is deprecated" info in this one. Interested folks can figure that out by following the "see Page.emulateMedia" link.

This comment has been minimized.

@Skn0tt Skn0tt requested a review from dgozman October 4, 2024 14:10
docs/src/api/class-page.md Outdated Show resolved Hide resolved
docs/src/api/class-page.md Outdated Show resolved Hide resolved
Skn0tt and others added 2 commits October 4, 2024 16:32
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Simon Knott <info@simonknott.de>

This comment has been minimized.

@Skn0tt Skn0tt merged commit 40670e6 into microsoft:main Oct 4, 2024
29 checks passed

This comment has been minimized.

Copy link
Contributor

github-actions bot commented Oct 4, 2024

Test results for "tests 1"

35761 passed, 680 skipped
✔️✔️✔️

Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: WebKit/macOS - "no-preference" color scheme falls back to the system's one
2 participants