Created
May 10, 2023 00:40
-
-
Save gandalf3/aa077574e9c6613bac8f48985a0e537b to your computer and use it in GitHub Desktop.
minimal example showing color scheme flicker behavior in dark reader
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Darkreader Flicker</title> | |
</head> | |
<body> | |
<input type="button" value="insert light-mode iframe"> | |
<script> | |
const button = document.querySelector('input'); | |
button.addEventListener('click', () => { | |
let iframe = document.createElement('iframe'); | |
iframe.style.colorScheme = 'light'; | |
document.body.appendChild(iframe); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment