ladybird/Tests/LibWeb/Text/input/css/box-shadow-resolves-length-functions.html

15 lines
466 B
HTML
Raw Normal View History

2025-03-18 15:28:35 -03:00
<!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>