SVG Coordinate Accuracy?
Does anyone know the "official" SVG coordinate precision in browsers?
For example: if I draw an arc with almost 360 °, it will eventually disappear because the beginning and end are crumbling.
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<style>
path {
stroke-width: 10px;
stroke: black;
fill: none;
}
</style>
<path
d="
M 200 200
A 100 100 0 1 1 199.99999 199.99999"
/>
</svg>
draws a perfect circle (in Firefox 34). However, adding a 9
to 199.99999
results in nothing being drawn. Is this behavior specified anywhere?
+3
source to share
1 answer
The SVG specification states double precision . No UA implements this because they are all limited by platform capabilities like direct3d, which are usually single precision.
+2
source to share