Skip to content

[html-in-canvas] Fix inline hit testing - #62334

Open
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-8324827
Open

[html-in-canvas] Fix inline hit testing#62334
chromium-wpt-export-bot wants to merge 1 commit into
masterfrom
chromium-export-cl-8324827

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

When an inline element has a canvas element transform, the offset from
PhysicalLinesBoundingBox needs to be removed so the inline's origin
does not include the inline's offset from its containing block, see:
LayoutInline::QuadsForSelfInternal. This patch applies the same
adjustment for LayoutInline::NodeAtPoint.

Bug: 554586994
Change-Id: I3cc68e70754e1fbac0b774426a8b26c3d9dafa54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8324827
Reviewed-by: Stefan Zager <szager@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1690128}

When an inline element has a canvas element transform, the offset from
`PhysicalLinesBoundingBox` needs to be removed so the inline's origin
does not include the inline's offset from its containing block, see:
`LayoutInline::QuadsForSelfInternal`. This patch applies the same
adjustment for LayoutInline::NodeAtPoint.

Bug: 554586994
Change-Id: I3cc68e70754e1fbac0b774426a8b26c3d9dafa54
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8324827
Reviewed-by: Stefan Zager <szager@chromium.org>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1690128}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants