mustang2247 / svgweb

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

CSS not working - but according to 'User Manual' it is supported #444

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Running on Debian, browser is FF3.5 on XP

The following doesn't use the CSS styles in Flash, but is OK using native
SVG. Various issues mention that CSS isn't supported, but the User Manual
says it is. 

Replacing the class="shoreline" with the style values works fine.

Can you advise if it is supported, and if so, what the problem may be.
Thanks.

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="864" height="768" version="1.1" xmlns="http://www.w3.org/2000/svg">
<style type="text/css">
path.shoreline
    { 
    stroke: rgb(0,141,0);
    fill: rgb(255,0,0);
    stroke-width: 5;
    }

path.grat
    {
    stroke: rgb(128,0,0);
    fill: none;
    stroke-width: 0.5;
    }
</style>
<rect x="0" y="0" width="864" height="768" fill="rgb(255,255,255)"/>
<g transform="scale(1,-1) translate(0,-768)">

<!-- start shoreline -->
<path class="shoreline" d="M 254.67 121.54 L 250.48 116.84 L 248.64 112.16
L 247.55 110.61 L 247.29 109.93 L 247.20 109.05 L 248.37 106.83 L 248.68
102.84 L 249.38 100.22 "/>
</g></svg>

Original issue reported on code.google.com by martinan...@gmail.com on 14 Jan 2010 at 11:41

GoogleCodeExporter commented 8 years ago
Only inline styles are supported, such as:

<text style="fill: red;">Foo</text>

The user manual states that only inline styles are supported, including using 
the .style 
member. We never claim to have full CSS stylesheet support. Marking bug as 
invalid.

Original comment by bradneub...@gmail.com on 5 Feb 2010 at 4:35