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)
Core
SVG
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.
Comment 2•13 years ago
|
||
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...
Assignee | ||
Comment 3•13 years ago
|
||
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
Comment 4•13 years ago
|
||
A testcase would be useful too.
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Comment 5•1 year ago
|
||
Updated•1 year ago
|
Assignee: nobody → longsonr
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•1 year ago
|
||
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
Comment 8•1 year ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox122:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Assignee | ||
Updated•1 year ago
|
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•