Files
ladybird/Tests/LibWeb/Text/input/css/calculated-integer-clamped-to-32-bit-range.html
Callum Law 0ab06e119e LibWeb: Use i32 max for clamping 'infinite' calculated integers
This required us to change our range values from `float`s to `double`s
since `float` can't exactly represent i32 max
2026-03-26 12:30:01 +01:00

20 lines
659 B
HTML

<!doctype html>
<style>
#foo {
order: calc(4294967296);
animation-timing-function: steps(calc(4294967296), end);
}
</style>
<div id="foo"></div>
<script src="../include.js"></script>
<script>
test(() => {
println(`Specified order: ${document.styleSheets[0].cssRules[0].style.order}`);
println(`Computed order: ${getComputedStyle(foo).order}`);
println(
`Specified animation-timing-function: ${document.styleSheets[0].cssRules[0].style.animationTimingFunction}`
);
println(`Computed animation-timing-function: ${getComputedStyle(foo).animationTimingFunction}`);
});
</script>