Skip to content

Truly independent web browser

492 B
Raw Blame
<!DOCTYPE html>
<script src="include.js"></script>
<div style="font-size:20px">That span has <span style="user-select:none">user-select: none</span></div>
<script>
    test(() => {
        // Select text by double-clicking
        internals.click(20, 20, 2);
        println(`"${window.getSelection()}"`);

        // Now try deselecting on mousedown behind the user-select:none element.
        internals.mouseDown(100, 100);
        println(`"${window.getSelection()}"`);
    });
</script>