LibWeb: Add Layout::Node::is_positioned()

Any node that has a CSS position other than "static" is positioned.
This commit is contained in:
Andreas Kling 2020-12-06 19:54:23 +01:00
commit 85a1bd6803
Notes: sideshowbarker 2024-07-19 01:01:03 +09:00
2 changed files with 6 additions and 0 deletions

View file

@ -133,6 +133,7 @@ public:
virtual void after_children_paint(PaintContext&, PaintPhase) {};
bool is_floating() const;
bool is_positioned() const;
bool is_absolutely_positioned() const;
bool is_fixed_position() const;