You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Harald Kuhr (JIRA)" <ji...@apache.org> on 2016/11/25 15:13:58 UTC

[jira] [Created] (BATIK-1163) DOMException: "The "opacity" property does not support dimension values"

Harald Kuhr created BATIK-1163:
----------------------------------

             Summary: DOMException: "The "opacity" property does not support dimension values"
                 Key: BATIK-1163
                 URL: https://issues.apache.org/jira/browse/BATIK-1163
             Project: Batik
          Issue Type: Bug
    Affects Versions: 1.8
         Environment: Using Batik 1.8 dependencies from Maven Central.
Reproduced on Windows, using Java 1.8 (likely not relevant in this case).
            Reporter: Harald Kuhr


One of the users of my library, TwelveMonkeys ImageIO reported an issue, trying to read certain SVG files (my project uses the rasterizer to convert SVG to BufferedImage, using the javax.imageio API). See the issue here for details: https://github.com/haraldk/TwelveMonkeys/issues/299

I tracked it down to an internal DOMException, with the message  "The "opacity" property does not support dimension values". 

The "offending" values in the CSS were:

    opacity:9.090909e-002

Manually changing the values to:

    opacity: 0.09090909

...I was able to read/display the SVG using the library/Batik, everything seemingly okay.

I can open the original SVG in question in both IE and Chrome without issues (as far as I can see, there might be internal warnings not displayed to me as an end user). Not sure whether this is a spec/leniency issue, or if this is a Batik bug, but would be happy if you could look into it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org