Skip to content

Truly independent web browser

760 B
Raw Blame
<!DOCTYPE html>
<style>
    html, body {
        margin: 0;
    }

    html {
        min-width: 801px;
    }
</style>
<script src="../include.js"></script>
<script>
    test(() => {
        internals.recordDisplayListForTesting();
        println(`Wheel target while the viewport scrolls: ${wheelTargetToString(internals.recordedDisplayListWheelTargetAt(400, 0, 100, 0))}`);

        // Only the viewport's overflow changes, so the recording reuses every box it recorded before.
        document.documentElement.style.overflowX = "hidden";
        internals.recordDisplayListForTesting();
        println(`Wheel target after the viewport stops scrolling: ${wheelTargetToString(internals.recordedDisplayListWheelTargetAt(400, 0, 100, 0))}`);
    });
</script>