Closed Bug 657155 Opened 14 years ago Closed 1 year ago

foreignObject inline in HTML isn't reliably reflowed when document.elementFromPoint is called

Categories

(Core :: SVG, defect)

defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: jwatt, Assigned: longsonr)

Details

Attachments

(1 file)

foreignObject inline in HTML isn't reliably reflowed before the document 'load' event is fired, so document.elementFromPoint() fails. See bug 580983 comment 116. Reflow tardiness isn't confirmed to be the problem, but it's almost certainly the case. Someone should enable the disabled test in test_pointer-events-2.xhtml and check. Boris, what's your opinion on whether people should be able to rely on foreignObject being reflowed before the document 'load' event is fired? Seems to me like elementFromPoint() should work onload, so it should.
The issue here is not that reflow must happen before "load" runs. There is no such requirement. The issue here is that document.elementFromPoint flushes reflow, but apparently that reflow flush is not actually causing the foreignObject to be reflowed.
Fwiw, that is _exactly_ what I was going to say. This sounds like one of the existing "foreignobject doesn't update layout dynamically correctly" bugs...
Changed summary to reflect comments.
Summary: foreignObject inline in HTML isn't reliably reflowed before the document 'load' event is fired → foreignObject inline in HTML isn't reliably reflowed when document.elementFromPoint is called
A testcase would be useful too.
Severity: normal → S3
Assignee: nobody → longsonr
Status: NEW → ASSIGNED

Not sure if this was ever a problem or just that the clipPath position was always incorrect in the test.

https://treeherder.mozilla.org/jobs?repo=try&revision=2594c7470d091ce04962bbfab8a1aed791f78e4e

Pushed by longsonr@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9ca2bcf6799b Correct position of clipPath so we can re-enable testing of foreignObject clipping r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: