mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibWeb: Set numeric type of asin, acos, atan calculation results
Previously we were omitting the numeric type which meant these functions weren't valid in some cases e.g. within rotate() functions.
This commit is contained in:
parent
4e747f525a
commit
536f8c395c
Notes:
github-actions[bot]
2025-06-25 04:20:13 +00:00
Author: https://github.com/Calme1709
Commit: 536f8c395c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5205
Reviewed-by: https://github.com/tcl3 ✅
5 changed files with 254 additions and 1 deletions
|
@ -1702,7 +1702,7 @@ static Optional<CalculatedStyleValue::CalculationResult> run_asin_acos_or_atan_o
|
|||
break;
|
||||
}
|
||||
|
||||
return CalculatedStyleValue::CalculationResult { result, CSSNumericType {}.made_consistent_with(child.numeric_type().value()) };
|
||||
return CalculatedStyleValue::CalculationResult { result, CSSNumericType { CSSNumericType::BaseType::Angle, 1 }.made_consistent_with(child.numeric_type().value()) };
|
||||
}
|
||||
|
||||
// https://drafts.csswg.org/css-values-4/#funcdef-asin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue