1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:57:44 +00:00

LibWeb: Clip overflowing inline children when overflow != "visible"

We now apply a paint-time clip to the padding rect of a BlockBox before
painting its inline-level children. This covers some of the behavior
we want from "overflow: hidden" etc but is far from a complete solution.
This commit is contained in:
Andreas Kling 2021-02-22 19:19:11 +01:00
parent be2b45b215
commit 53081226e9
2 changed files with 17 additions and 0 deletions

View file

@ -55,6 +55,8 @@ public:
private:
virtual bool is_block_box() const final { return true; }
bool should_clip_overflow() const;
};
template<>