LibWeb: Fix mouse event offset computation with nested CSS transforms

compute_mouse_event_offset() only inverted the target element's own CSS
transform, ignoring ancestor transforms. This caused incorrect offsetX/
offsetY values when elements were nested inside transformed parents.

Use AccumulatedVisualContext::inverse_transform_point() to invert the
full ancestor transform chain instead.
This commit is contained in:
Aliaksandr Kalenik
2026-01-31 15:34:23 +01:00
committed by Alexander Kalenik
parent 176e3b93b3
commit 24c08b7d42
Notes: github-actions[bot] 2026-02-06 10:51:28 +00:00
4 changed files with 43 additions and 14 deletions

View File

@@ -1,2 +1,2 @@
offsetX: 55
offsetX: 5
offsetY: 5