diff options
author | MacDue <macdue@dueutil.tech> | 2022-08-07 23:26:25 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-08 14:03:29 +0200 |
commit | 038017ce114559059e93b50909c055f52e9e373a (patch) | |
tree | a3c9a3f31c0da6af7c0155ebf35411c90fb8530a /Userland/Libraries/LibWeb/Painting | |
parent | 6b2e93eb7c716b207d95871a914aeb75284032a4 (diff) | |
download | serenity-038017ce114559059e93b50909c055f52e9e373a.zip |
LibWeb: Enable CSS clip for `position: fixed` elements
This fixes the clip-absolute-positioned-002 web platform test.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index b69ae76e05..f92e37a77a 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -114,7 +114,7 @@ void PaintableBox::paint(PaintContext& context, PaintPhase phase) const return; auto clip_rect = computed_values().clip(); - auto should_clip_rect = clip_rect.is_rect() && computed_values().position() == CSS::Position::Absolute; + auto should_clip_rect = clip_rect.is_rect() && layout_box().is_absolutely_positioned(); if (phase == PaintPhase::Background) { if (should_clip_rect) { |