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

LibWeb: Implement "out-of-flow" property of Layout Box

In some situations, a layout box should not participate in the standard
layout process, for example when set to `position: absolute`.
This commit is contained in:
Sam Atkins 2021-09-15 12:19:42 +01:00 committed by Andreas Kling
parent e80396e044
commit 2844f89a83
4 changed files with 30 additions and 0 deletions

View file

@ -21,6 +21,7 @@ public:
const FormattingContext* parent() const { return m_parent; }
virtual bool is_block_formatting_context() const { return false; }
virtual bool inhibits_floating() const { return false; }
static bool creates_block_formatting_context(const Box&);