1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb: Ignore fragments with pointer-events: none in hit-testing

This commit is contained in:
Jelle Raaijmakers 2025-01-31 11:17:46 +01:00 committed by Andreas Kling
parent e7add9abc6
commit f204970052
Notes: github-actions[bot] 2025-01-31 12:38:07 +00:00
3 changed files with 9 additions and 2 deletions

View file

@ -1060,7 +1060,7 @@ TraversalDecision PaintableWithLines::hit_test(CSSPixelPoint position, HitTestTy
return TraversalDecision::Continue;
for (auto const& fragment : fragments()) {
if (fragment.paintable().has_stacking_context())
if (fragment.paintable().has_stacking_context() || !fragment.paintable().visible_for_hit_testing())
continue;
auto fragment_absolute_rect = fragment.absolute_rect();
if (fragment_absolute_rect.contains(transformed_position_adjusted_by_scroll_offset)) {