Gary Frederick wrote:

Howdy all,

Does Batik/Squiggle support hover?

No, as far as I know Batik does not support any of the CSS pseudo classes.



Here are two simple tests that do not 'hover':

hoverCSS.svg

<?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="10cm" height="5cm" viewBox="0 0 1000 500"
     xmlns="http://www.w3.org/2000/svg"; version="1.1">
  <defs>
    <style type="text/css"><![CDATA[
      rect {
        fill: red;
        stroke: blue;
        stroke-width: 6
      }
      rect:hover {
        stroke:green; stroke-width:10; fill-opacity:0.2;
      }
    ]]></style>
  </defs>
  <rect x="200" y="100" width="600" height="300"/>
</svg>


and externalCSS.svg

<?xml version="1.0" standalone="no"?>
<?xml-stylesheet href="mystyle.css" type="text/css"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd";>
<svg width="10cm" height="5cm" viewBox="0 0 1000 500"
     xmlns="http://www.w3.org/2000/svg"; version="1.1">
  <rect x="200" y="100" width="600" height="300"/>
</svg>


mystyle.css for externalCSS.svg


rect {
  fill: red;
  stroke: blue;
  stroke-width: 6
}

rect:hover {
  stroke:green; stroke-width:10; fill-opacity:0.2;
}


I was looking here http://www.w3.org/TR/SVG11/styling.html#StyleElementExample and started playing. The other CSS stuff works.

I'll file a bug if it's a bug :-)

Thanks,

Gary


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to