Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 700532 - Last child of foreignObject not rendered in SVG-in-img if it needs to load a resource
: Last child of foreignObject not rendered in SVG-in-img if it needs to load a ...
Product: Core
Classification: Components
Component: SVG (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Jet Villegas (:jet)
Depends on:
  Show dependency treegraph
Reported: 2011-11-07 18:21 PST by Eli Grey (:sephr)
Modified: 2013-02-09 08:03 PST (History)
3 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

foreignObject with red image (383 bytes, image/svg+xml)
2013-02-09 08:00 PST, Robert Longson
no flags Details
html with background image (174 bytes, text/html)
2013-02-09 08:02 PST, Robert Longson
no flags Details

Description Eli Grey (:sephr) 2011-11-07 18:21:12 PST
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.
Comment 1 Boris Zbarsky [:bz] (still a bit busy) 2011-11-07 19:38:20 PST
Could you please attach a testcase showing the issue?
Comment 2 Robert Longson 2013-02-09 08:00:49 PST
Created attachment 712135 [details]
foreignObject with red image
Comment 3 Robert Longson 2013-02-09 08:02:06 PST
Created attachment 712136 [details]
html with background image
Comment 4 Robert Longson 2013-02-09 08:03:16 PST
Seems fine to me.

Note You need to log in before you can comment on or make changes to this bug.