Newer
Older
minerva / Tests / LibWeb / Text / input / css / box-shadow-resolves-length-functions.html
@minerva minerva on 13 Jul 450 bytes Initial commit
<script src="../include.js"></script>
<script>
    test(() => {
        const e = document.createElement("div");
        document.body.appendChild(e);
        const definition = "0 calc(5px - 10px) 0 calc(2px + 3px)";
        e.style.boxShadow = definition;
        const computedStyle = getComputedStyle(e);
        const serialized = computedStyle.boxShadow;
        println(definition + " => " + serialized);
        e.remove();
    });
</script>