mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
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:
committed by
Jelle Raaijmakers
parent
0ab06e119e
commit
b86377b9dc
Notes:
github-actions[bot]
2026-03-26 11:31:21 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/b86377b9dc5 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8609 Reviewed-by: https://github.com/gmta ✅
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user