Open Bug 1644680 Opened 1 year ago Updated 1 month ago

foreignObject overflow:visible not working

Categories

(Core :: SVG, defect)

77 Branch
defect

Tracking

()

People

(Reporter: breakthroughTGW, Unassigned, NeedInfo)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Attached file test2.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36

Steps to reproduce:

set foreignObject overflow property to visible
insert elements into foreignObject after timeout 1000ms

Actual results:

elements not visible

Expected results:

elements should visible

Status: UNCONFIRMED → NEW
Component: Untriaged → SVG
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Regressed by: 1458968

Not a particularly recent regression (2 years), but this definitely looks broken.

Triggering a reflow (e.g. by zooming, or modifying a property like font-size on the foreignObject) causes the missing content to pop into view.

Markus, given the range in comment 1, it looks like your patches may be responsible for this. Can you take a look?

Severity: -- → S3
Flags: needinfo?(mstange)

Hmm, the patch at https://hg.mozilla.org/mozilla-central/rev/09b3d826af11 makes me think that, since this worked before bug 1458968, it was probably working by accident.
And since bug 1557245, it "should" be working.

I suppose there's a missing reflow here that would be needed to update the visual overflow rect?
I don't know the SVG reflow code, I'm not the right person to fix this bug.

Maybe Violet is interested in giving this a spin?

Flags: needinfo?(mstange) → needinfo?(violet.bugreport)
Duplicate of this bug: 1711018
You need to log in before you can comment on or make changes to this bug.