content
content copied to clipboard
19449 prefers color scheme
Background:
Embedded SVGs and iframes can now use prefers-color-scheme media query to add styles that inherit (depend on) the color-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:
- Parent issue: https://github.com/mdn/content/issues/19449
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.
Some more feedback
Thank you, incorporating the comments now.
Thanks, Estelle 🙌🏻