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

LibWeb: Treat grid items with z-index != auto as positioned elements

This commit is contained in:
Aliaksandr Kalenik 2023-08-21 17:07:53 +02:00 committed by Andreas Kling
parent 95a8dec373
commit cca779e7f6
5 changed files with 33 additions and 1 deletions

View file

@ -56,7 +56,7 @@ class Paintable
public:
virtual ~Paintable() = default;
[[nodiscard]] bool is_positioned() const { return layout_node().is_positioned(); }
[[nodiscard]] bool is_positioned() const;
[[nodiscard]] bool is_fixed_position() const { return layout_node().is_fixed_position(); }
[[nodiscard]] bool is_absolutely_positioned() const { return layout_node().is_absolutely_positioned(); }
[[nodiscard]] bool is_floating() const { return layout_node().is_floating(); }