-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
19449 prefers color scheme #20886
19449 prefers color scheme #20886
Conversation
Preview URLs (this comment was updated 2022-10-13 08:06:12.550723) |
I'm away until Monday. @estelle would perhaps be a better person to review CSS. |
Co-authored-by: Estelle Weyl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more feedback
Thank you, incorporating the comments now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
committed my one grammar change. looks good!
Thanks, Estelle 🙌🏻 |
Background:
Embedded SVGs and iframes can now use
prefers-color-scheme
media query to add styles that inherit (depend on) thecolor-scheme
of the embedding element.This PR adds details about embedded elements and how media queries can be used to control how embedded elements are styled based on embedding elements. There's an additional example that shows default functionality (browser or OS prefs) and then explicit styling based on the parent (embedding) element.
Other issues and PRs:
prefers-color-scheme
reflects thecolor-scheme
on the embedding element #19449