I'm having a weird renderering issue with an SVG in Safari. I have a circle with a stroke animating like a circular loader, but for some reason the rendering is off as soon as i add the stroke-dashoffset or stroke-dasharray.
gif for reference:
(source: askenielsen.dk)
The rendering somehow seems to get more jagged as soon as one of these styles are applied.
It doesn't seem like much, but it becomes quite apparent with more than one circle:
(source: askenielsen.dk)
It looks fine in Safari on a retina display or and in IE, Firefox, Chrome etc.
The scaling of the circle or the stroke width does not change the problem, in neither browser.
SVG
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 134 134" enable-background="new 0 0 134 134" xml:space="preserve" width="134px" height="134px">
<path class="circle" d="M67,6c33.7,0,61,27.3,61,61c0,33.7-27.3,61-61,61c-33.7,0-61-27.3-61-61C6,33.3,33.3,6,67,6"/>
<path class="circle" d="M67,13c29.8,0,54,24.2,54,54s-24.2,54-54,54S13,96.8,13,67S37.2,13,67,13"/>
<path class="circle" d="M67,20c26,0,47,21,47,47s-21,47-47,47S20,93,20,67S41,20,67,20"/>
</svg>
CSS
.circle {
fill: none;
stroke: red;
stroke-width: 4px;
/* THE STYLE THAT MESSES UP THE RENDERING */
stroke-dasharray: 200px, 200px;
}
You can test it here.
Any ideas?