Skip to content

fix(layout): hit-test atomic inlines in front of wrapping inline boxes - #395

Open
BibekPathak wants to merge 2 commits into
lexmount:mainfrom
BibekPathak:fix_layout
Open

fix(layout): hit-test atomic inlines in front of wrapping inline boxes#395
BibekPathak wants to merge 2 commits into
lexmount:mainfrom
BibekPathak:fix_layout

Conversation

@BibekPathak

Copy link
Copy Markdown
Contributor

For a normal-flow <label>text <input></label> the atomic <input> box
fragment only received a background-phase hit paint order, so the
wrapping <label>'s contents-phase InlineBox fragment occluded all but a
thin strip of the input in tree hit testing (DOM.getNodeForLocation
returned the label inside the input box). Promote a non-flattened atomic
inline's own box fragment to the contents phase at its BoxContents event,
so a point inside the atomic resolves to the atomic while the enclosing
inline still wins outside it. paint_order is hit-test-only, so rendering
is unchanged.

@BibekPathak

Copy link
Copy Markdown
Contributor Author

Hey @ldm0 , check this out!!

@ldm0
ldm0 self-requested a review September 5, 2026 19:28
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