mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Ignore "pointer-events: none" elements in hit_test
This commit is contained in:
parent
f39b6ae3c6
commit
dfc3a4772b
2 changed files with 6 additions and 6 deletions
|
@ -379,6 +379,10 @@ Optional<HitTestResult> StackingContext::hit_test(Gfx::FloatPoint const& positio
|
|||
return {};
|
||||
}
|
||||
|
||||
if (paintable().computed_values().pointer_events() == CSS::PointerEvents::None) {
|
||||
return {};
|
||||
}
|
||||
|
||||
// NOTE: Hit testing basically happens in reverse painting order.
|
||||
// https://www.w3.org/TR/CSS22/visuren.html#z-index
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue