Skip to content

Truly independent web browser

516 B
Raw Blame
<!doctype html>
<script src="../include.js"></script>
<button id="target">Button</button>
<script>
    test(() => {
        for (const display of ["block", "flow-root", "flex", "grid"]) {
            target.style.display = display;
            println(getComputedStyle(target).display);
        }
        target.style.cssText = "display: block; border: 0; padding: 0";
        target.innerHTML = '<span style="float: left; width: 15px; height: 43px"></span>';
        println(target.offsetHeight);
    });
</script>