1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibWeb: Ignore "pointer-events: none" elements in hit_test

This commit is contained in:
Aliaksandr Kalenik 2022-10-19 13:46:48 +03:00 committed by Linus Groh
parent f39b6ae3c6
commit dfc3a4772b
2 changed files with 6 additions and 6 deletions

View file

@ -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