Last active
March 12, 2024 23:14
-
-
Save greggman/c0369ecd09587b2d7ea3aa9d65dbb892 to your computer and use it in GitHub Desktop.
Iframe color-scheme issue
This file contains 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; } | |
iframe { | |
color-scheme: light; | |
background-color: white; | |
} |
This file contains 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 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 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","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