Open
Bug 657155
Opened 13 years ago
Updated 2 years ago
foreignObject inline in HTML isn't reliably reflowed when document.elementFromPoint is called
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
NEW
People
(Reporter: jwatt, Unassigned)
Details
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...
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
You need to log in
before you can comment on or make changes to this bug.
Description
•