Skip to content

Include transforms in the stacking context content area - #621

Open
maurerdietmar wants to merge 1 commit into
DioxusLabs:mainfrom
maurerdietmar:hoisted-transform-hit
Open

Include transforms in the stacking context content area#621
maurerdietmar wants to merge 1 commit into
DioxusLabs:mainfrom
maurerdietmar:hoisted-transform-hit

Conversation

@maurerdietmar

@maurerdietmar maurerdietmar commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

The content area gates hit testing's descent into hoisted children, but it was built from their layout boxes alone. A hoisted child moved by a CSS transform paints and hit-tests at the transformed position (Node::hit_inner applies the transform), so a click on it landed outside the recorded area and fell through to whatever the element visually covers. Union the transformed corners instead.

WPT results

No changes in test results compared to main.

Generated by the WPT workflow.

The content area gates hit testing's descent into hoisted children,
but it was built from their layout boxes alone. A hoisted child moved
by a CSS transform paints and hit-tests at the transformed position
(Node::hit_inner applies the transform), so a click on it landed
outside the recorded area and fell through to whatever the element
visually covers. Union the transformed corners instead.

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant