mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 13:09:41 +00:00
LibWeb: Clamp computed value for font-style oblique angle
Values outside [-90deg,90deg] are invalid and should be clamped
This commit is contained in:
parent
dc41d045d8
commit
e17d91780d
Notes:
github-actions[bot]
2025-09-19 09:07:38 +00:00
Author: https://github.com/Calme1709
Commit: e17d91780d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6072
Reviewed-by: https://github.com/AtkinsSJ ✅
5 changed files with 13 additions and 8 deletions
|
@ -4107,6 +4107,10 @@ RefPtr<StyleValue const> Parser::parse_calculated_value(ComponentValue const& co
|
|||
},
|
||||
[](SpecialContext special_context) -> Optional<CalculationContext> {
|
||||
switch (special_context) {
|
||||
case SpecialContext::FontStyleObliqueAngle:
|
||||
return CalculationContext {
|
||||
.accepted_type_ranges = { { ValueType::Angle, { -90, 90 } } }
|
||||
};
|
||||
case SpecialContext::ShadowBlurRadius:
|
||||
return CalculationContext { .accepted_type_ranges = { { ValueType::Length, { 0, NumericLimits<float>::max() } } } };
|
||||
case SpecialContext::TranslateZArgument:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue