mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb: Don't crash on non-finite values in CSS clamp() function
Stops a WPT test from crashing, giving us 29 new subtest passes. :^)
This commit is contained in:
parent
2f76b24b89
commit
1772adb600
Notes:
github-actions[bot]
2025-04-24 16:28:32 +00:00
Author: https://github.com/awesomekling
Commit: 1772adb600
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4455
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 210 additions and 1 deletions
|
@ -1217,7 +1217,8 @@ CalculatedStyleValue::CalculationResult ClampCalculationNode::resolve(Calculatio
|
|||
if (chosen_value == max_value)
|
||||
return max_node;
|
||||
|
||||
VERIFY_NOT_REACHED();
|
||||
// NOTE: Non-finite values end up here.
|
||||
return CalculatedStyleValue::CalculationResult { chosen_value, numeric_type() };
|
||||
}
|
||||
|
||||
NonnullRefPtr<CalculationNode const> ClampCalculationNode::with_simplified_children(CalculationContext const& context, CalculationResolutionContext const& resolution_context) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue