mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 23:56:06 +00:00
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:
parent
c875cdae64
commit
41e37f0079
Notes:
github-actions[bot]
2024-09-17 18:03:27 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 41e37f0079
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1420
Reviewed-by: https://github.com/AtkinsSJ ✅
4 changed files with 43 additions and 1 deletions
|
@ -65,6 +65,8 @@ public:
|
|||
|
||||
Value const& value() const { return m_value; }
|
||||
|
||||
ResolvedType resolved_type() const;
|
||||
|
||||
[[nodiscard]] bool operator==(CalculationResult const&) const = default;
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue