Skip to content

Instantly share code, notes, and snippets.

@gandalf3
Created May 10, 2023 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gandalf3/aa077574e9c6613bac8f48985a0e537b to your computer and use it in GitHub Desktop.
Save gandalf3/aa077574e9c6613bac8f48985a0e537b to your computer and use it in GitHub Desktop.
minimal example showing color scheme flicker behavior in dark reader
<!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