I am trying to assign a custom cursor to an element. If I load a SVG file like:
<g style="cursor:url(#magglass)">
this always results in an error. Batik (I'm using version 1.5) complains about an 'invalid CSS declaration'. But as far as I can see the style attribute for the <g>-element is correct. Opening the file with squiggle shows:
If you read the SVG specification closely it _requires_ that the cursor property end with one of the 'identifier' cursors. So your specification needs to be something like:
style="cursor:url(#magglass),crosshair"
org.w3c.dom.DOMException: file:/D:/Documents/SVG/CursorTest.svg:
The attribute "style" represents an invalid CSS declaration ("cursor:url(#magglass)").
Original message:
A malformed value was assigned to a "cursor" property.
at org.apache.batik.css.engine.CSSEngine.getCascadedStyleMap(Unknown Source)
at org.apache.batik.css.engine.CSSEngine.getComputedStyle(Unknown Source)
at org.apache.batik.bridge.CSSUtilities.getComputedStyle(Unknown Source)
at org.apache.batik.bridge.CSSUtilities.convertDisplay(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source)
Regards
Wolfgang Reh
* Wolfgang Reh
*Scheydgasse 41 1210 Wien
mailto:[EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
