ladybird/Tests/LibWeb/Text/input/css/box-shadow-resolves-length-functions.html
2025-03-20 11:50:49 +01:00

14 lines
466 B
HTML

<!DOCTYPE html>
<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>