Last child of foreignObject not rendered in SVG-in-img if it needs to load a resource

RESOLVED INVALID

Status

()

Core
SVG
RESOLVED INVALID
6 years ago
4 years ago

People

(Reporter: sephr, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

6 years ago
If the last child (including text nodes) of a foreignObject in an SVG-in-img loads a resource (which is limited to object URLs and data: URIs in the case of SVG-in-img), such as html:img[src], html:video[poster], and svg:image[href], the image content is not displayed. The element itself is still displayed.

An easy workaround is to append a text node after the last child.
Could you please attach a testcase showing the issue?

Comment 2

4 years ago
Created attachment 712135 [details]
foreignObject with red image

Comment 3

4 years ago
Created attachment 712136 [details]
html with background image

Comment 4

4 years ago
Seems fine to me.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.