lewisje / svgweb

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

z-index not respected in ie6 for svg files without transparent background #491

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to create pan zoom controls in the top left corner of an svg file 
like google maps for 
example. However I have encountered issues with getting this to work with IE.

1. Embed any svg file with the attribute style set as background-color:#ff0000; 
into a page
2. Create a div and using position absolute and z-index lift it above the svg 
graphic (Eg. into the 
top left corner)
3. Open in IE6 with flash mode and you will notice that z-index has not been 
respected and the 
svg object is actually above the div. In Firefox it seems to be fine.

If you now go into the svg and set background: transparent; you will notice the 
z-index is now 
respected in IE6. Setting wmode to transparent seems to fix this issue.

Not sure whether you would call this a bug with svgweb (probably out of scope) 
but thought it 
was worth raising.

Original issue reported on code.google.com by jdlrob...@gmail.com on 21 May 2010 at 1:15