Bug 247829
| Summary: | MouseClick offsetX/offsetY different between Safari 15.5 and Safari 16 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Richard Robinson <richard_robinson2> |
| Component: | UI Events | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer, zimmermann |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Richard Robinson
When a foreign object is inside an SVG, any click event that occurs on the object has it's `offsetX` and `offsetY` relative to the SVG container rather than the element.
Believed to be a regression from https://bugs.webkit.org/show_bug.cgi?id=234524 , which overrode `offsetFromContainer` in `RenderSVGBlock`, causing the `RenderSVGForeignObject`
to use this override and return an offset of `(0, 0)` instead of its proper offset.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Richard Robinson
rdar://100517677
Richard Robinson
Pull request: https://github.com/WebKit/WebKit/pull/6436
EWS
Committed 256679@main (d5fba35fb6c5): <https://commits.webkit.org/256679@main>
Reviewed commits have been landed. Closing PR #6436 and removing active labels.
Nikolas Zimmermann
Thanks! I had a PR open which also fixes offsetFromContainer(), good it is fixed already.