[
https://issues.apache.org/jira/browse/BATIK-319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061808#comment-16061808
]
Trejkaz commented on BATIK-319:
-------------------------------
CSS3 does support scientific notation, so this is something which Chrome is
rendering correctly while Batik is not.
I assume Batik's excuse will be that it only supports CSS2, but from a user's
point of view, I just tried to use the rasteriser, and it produced an incorrect
result.
> shapes with scientific numbers are rendered incorrectly
> -------------------------------------------------------
>
> Key: BATIK-319
> URL: https://issues.apache.org/jira/browse/BATIK-319
> Project: Batik
> Issue Type: Bug
> Components: SVG Viewer
> Affects Versions: 1.1.x
> Environment: Operating System: Linux
> Platform: PC
> Reporter: Jos van den Oever
> Assignee: Batik Developer's Mailing list
>
> Using small scientific numbers doesn't work well in Batik 1.1.1.
> I'm pasting two svg elements that should look identically:
> <svg width="10cm" height="10cm"
> viewBox="0 0 4000 2000"
> xmlns="http://www.w3.org/2000/svg">
> <rect x="50" y="50" width="3950" height="1950"
> fill="none" stroke="blue" stroke-width="1%" />
> </svg>
> <svg width="10cm" height="10cm"
> viewBox="0 0 4000e-10 2000e-10"
> xmlns="http://www.w3.org/2000/svg">
> <rect x="50e-10" y="50e-10" width="3950e-10" height="1950e-10"
> fill="none" stroke="blue" stroke-width="1%" />
> </svg>
>
> The stroke-width is specified in %, since Batik complains about 50e-10 as a
> stroke-width, even though it's perfectly legitimate.
>
> You may ask, why specify such small numbers? Well, it can be useful for
> plotting data: when these numbers are allowed, raw data can be plotted
> directly. And according to the specs, it's allowed.
>
> So what's the problem? The second svg element, that specifies the same
> lengths
> as the first, but divided by 1e10, is rendered incorrectly: only a blue
> square
> appears, instead of simply an outline.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]