1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:57:34 +00:00

LibWeb: Implement clip property

Implement clip when it is defined in the css property 'clip' as a rect
according to spec; only when the div is absolutely positioned.
This commit is contained in:
Tom 2022-08-02 15:08:06 +02:00 committed by Andreas Kling
parent 8163ee1500
commit 5049a56d96
3 changed files with 33 additions and 0 deletions

View file

@ -89,6 +89,7 @@ struct EdgeRect {
Length right_edge;
Length bottom_edge;
Length left_edge;
Gfx::FloatRect resolved(Layout::Node const&, Gfx::FloatRect) const;
};
// FIXME: Find a better place for this helper.