LibWeb: Use correct resolved type for round() CSS function

Function is defined as `round(<rounding-strategy>?, A, B?)`

With this change resolved type is `typeof(resolve(A))`, instead of
`typeof(A)`.

For example `round(up, 20%, 1px)` with 200px percentage basis is now
correctly resolved in 40px instead of 40%.

Progress on https://www.notion.so/ landing page.
This commit is contained in:
Aliaksandr Kalenik 2024-09-17 17:51:48 +02:00 committed by Alexander Kalenik
commit 41e37f0079
Notes: github-actions[bot] 2024-09-17 18:03:27 +00:00
4 changed files with 43 additions and 1 deletions

View file

@ -65,6 +65,8 @@ public:
Value const& value() const { return m_value; }
ResolvedType resolved_type() const;
[[nodiscard]] bool operator==(CalculationResult const&) const = default;
private: