<!DOCTYPE html>
<meta name="color-scheme" content="dark">
<script src="../../../../../../resources/run-after-layout-and-paint.js"></script>
<style>
:root {
background-color: green;
height: 5000px;
width: 5000px;
}
</style>
<script>
runAfterLayoutAndPaint(() => {
window.internals.setDarkPreferredColorScheme(document);
}, true);
</script>