Click here to get back home

svg in Internet Explorer with adobe plugin

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
svg in Internet Explorer with adobe plugin Holger Jeromin 06-05-2008
Posted by Holger Jeromin on June 5, 2008, 10:39 am
Please log in for more thread options

Hello,

Note: this is a IE 6,7 and 8b1 only html example, my problem does not
appear in other browsers with native svg support. For them i have a
working valid "XHTML 1.1 plus MathML 2.0 plus SVG 1.1" Version :-)

I have an svg element embedded into a html.
Sadly the global definition in <svg:style type="text/css"> is not
overwritten by the special style attributes of the circle and polyline
elements:

<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:svg="http://www.w3.org/2000/svg" xml:lang="en">
<head>
<meta http-equiv="Content-Style-Type" content="text/css">
<title>SVG CSS Test</title>
<object id="AdobeSVG"
        classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2">
</object>
<?import namespace="svg" implementation="#AdobeSVG"?>
</head>
<body>
<p id="playground">
<svg:svg xmlns:svg="http://www.w3.org/2000/svg" x="0" y="0" height="200"
width="200" layerX="0" layerY="0">
        <svg:style xmlns:svg="http://www.w3.org/2000/svg" type="text/css">
        * {stroke:blue;fill: red;overflow: visible;}
        </svg:style>
        <svg:svg xmlns:svg="http://www.w3.org/2000/svg" x="30" y="30"
height="60" width="60">
                <svg:circle cx="30" cy="30" r="30" style="fill: green;overflow:
visible;"/>
                <svg:polyline points="60,30 30,60 0,30" style="fill:none; stroke:
yellow;stroke-width:3px;"/>
        </svg:svg>
</svg:svg>
</p>
</body>
</html>

The circle should be filled green, the stroke of the polyline yellow.

Dropping the <svg:style type="text/css"> results in a fall back to the
default values of fill (black) and stroke (none), with is not a solution
either.

In reality i get a string of the svg with ajax and import this to the
DOM. So it would be best if there is an easy automated way to change the
SVG to be displayed as in opera/firefox.

--
best regards
Holger Jeromin

Similar ThreadsPosted
Internet Explorer Bug? May 22, 2006, 6:05 pm
css & internet explorer January 10, 2008, 4:55 am
Box Model in Internet Explorer 7.0 May 16, 2005, 10:22 am
subscripts on Internet Explorer March 7, 2005, 9:25 am
Button Element and Internet Explorer 6.0 August 3, 2004, 8:24 am
internet explorer vs firefox vs netscape March 1, 2005, 7:13 pm
internet explorer makes gabs September 1, 2005, 1:39 am
Dimensions of embedded video in Internet Explorer? January 31, 2006, 2:56 pm
Internet Explorer won't hide nested paragraphs March 11, 2007, 12:12 pm
Why is this page so slow to render in Internet Explorer? October 25, 2007, 7:36 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap