Letractively / svgweb

Automatically exported from code.google.com/p/svgweb
Other
0 stars 0 forks source link

Flash object not visible if svg file hasn't onload script, except in IE #346

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to open this in Firefox, Opera, IE:

http://codinginparadise.org/projects/svgweb/tests/htmlObjectHarness/full-color-p
rof-01-f.html?svg.render.forceflash=true

2.
3.

What is the expected output? What do you see instead?

In IE, the svg is visible. In Firefox or Opera, is invisible.
If you see the HTML with firebug, yu'll see the svg embed tag (created by
svgweb) is with style.visibility=hidden. If you change, with firebug, the
visibility to visible, the svg appears.

What version of the product are you using? On what operating system,
browser, and version of Flash?

svgweb-2009-10-12-Beholder 
Firefox,Opera,IE6
Win XP home
Flash 10,0,32,18 

Please provide any additional information below. Reduced test cases are
always appreciated!

This issue can be reproduced in firefox or Opera, when flash is forced and
the SVG file is external and has no scripts. If the SVG file has onload
scrips, the SVG image is rendered. If the SVG object is created dynamicaly,
the SVG image is rendered. In simple SVG, the issue happens.

I think that, for any reason, the embed tag is set to hidden, but not
setted back to visible, except in IE. When the onload in SVG is fired, this
issue does not happen, as well as if the svg objet is created dynamicaly.

If you attach an onload event handler for html body, it is not fired until
you make the embed tag visible (with firebug)

If (in svg-uncompressed.js) you change the line that adds:
 "visibility=hidden" to the svg object to: "visibility=visible", 
  or just delete that line, the issue dissapears (but do not know the side
effects of this patch)

Original issue reported on code.google.com by clama...@hotmail.com on 13 Oct 2009 at 10:17

GoogleCodeExporter commented 8 years ago
If you think an Issue 341 was closed incorrectly, please add comments to that 
issue
and I'll reopen it if necessary. Please do not file duplicate Issues. 

I've tested this (several times now) with the latest release and it works fine 
in 5
browsers across three operating systems. The URL you referenced above is not 
running
the latest release.

Try this URL:
http://www.crowdfx.com/tests/htmlObjectHarness/full-color-prof-01-f.html?svg.ren
der.forceflash=true

Original comment by grick23@gmail.com on 15 Oct 2009 at 2:56