Last active
June 17, 2026 08:45
-
-
Save greggman/8ee31b12b374222e6eb4e24c1331d90d to your computer and use it in GitHub Desktop.
Iframe color-scheme issue (s2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| color-scheme: light dark; | |
| background-color: Canvas; | |
| } | |
| iframe { | |
| color-scheme: initial; | |
| background-color: Canvas; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <p>The iframe below should be white text on a black background</p> | |
| <iframe src="data:text/html,<!DOCTYPE html><style>:root { color-scheme: light dark; }</style><h1>Some Text in an iframe</h1>"></iframe> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*bug-in-github-api-content-can-not-be-empty*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"name":"Iframe color-scheme issue (s2)","settings":{},"filenames":["index.html","index.css","index.js"]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment