Skip to content

Truly independent web browser

814 B
Raw Blame
<!DOCTYPE html>
<html class="reftest-wait">
<meta name="color-scheme" content="only light">
<style>
    body { margin: 0; background: #ffffff; color: #000000; }
    .box { width: 80px; height: 40px; background: #ffffff; border: 4px solid #000000; margin: 8px; }
</style>
<div class="box">one</div>
<div class="box">two</div>
<div class="box">three</div>
<script>
    // The same page with the meta present from the start: 'only light' opts out, so force-dark leaves it light.
    // The test page must land in the same place after its mid-flight meta insertion.
    if (window.internals)
        internals.setForceDarkEnabled(true);
    requestAnimationFrame(() => {
        requestAnimationFrame(() => {
            document.documentElement.classList.remove("reftest-wait");
        });
    });
</script>
</html>