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.
This commit is contained in:
Callum Law
2026-03-26 21:33:07 +13:00
committed by Jelle Raaijmakers
parent 0ab06e119e
commit b86377b9dc
Notes: github-actions[bot] 2026-03-26 11:31:21 +00:00
24 changed files with 74 additions and 51 deletions

View File

@@ -74,7 +74,7 @@ public:
return Resolution::from_style_value(m_value->absolutized(computation_context));
}
i64 integer(ComputationContext const& computation_context) const
i32 integer(ComputationContext const& computation_context) const
{
VERIFY(is_integer());
return int_from_style_value(m_value->absolutized(computation_context));