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:
parent
e7add9abc6
commit
f204970052
Notes:
github-actions[bot]
2025-01-31 12:38:07 +00:00
Author: https://github.com/gmta
Commit: f204970052
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3416
3 changed files with 9 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue