Files
ladybird/Tests/LibWeb/Text/input/css/integer-clamped-to-32-bit-range-at-parse-time.html
Callum Law b86377b9dc LibWeb: Clamp CSS <integer> value to i32 at parse time
This matches the behavior of other browsers. Previously we implemented
this at used-value time for z-index specifically.
2026-03-26 12:30:01 +01:00

19 lines
626 B
HTML

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