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:
parent
be2b45b215
commit
53081226e9
2 changed files with 17 additions and 0 deletions
|
@ -55,6 +55,8 @@ public:
|
|||
|
||||
private:
|
||||
virtual bool is_block_box() const final { return true; }
|
||||
|
||||
bool should_clip_overflow() const;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue