Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVG stroke-linecap doesn't work for circles in Firefox?

Tags:

firefox

svg

I've got a problem with svg stroke-linecap attribute. I've got circular progress bar in AngularJS and I would like to set the outer circle (blue one) to have a rounded "ends". Look at this fiddle.

<svg ... height="130" width="130">
<!-- ngIf: background -->
<circle ... 
    ng-if="background" 
    fill="#fff" 
    class="ng-scope" 
    stroke-width="13" 
    stroke="#cc3399" 
    r="57.5" 
    cy="65" 
    cx="65" 
    stroke-linecap="round" 
/>
<!-- end ngIf: background -->
<circle ... 
    fill="none" 
    stroke-dashoffset="36.12831551628261" 
    stroke-dasharray="361.28315516282623" 
    stroke-width="13" 
    stroke="#432db3" 
    stroke-linecap="round" 
    r="57.5" 
    cy="65" 
    cx="65" 
    transform="rotate(-89.9, 65, 65)"
/>
</svg>

How can i do that?

like image 338
ketysek Avatar asked Jan 23 '16 13:01

ketysek


1 Answers

This has been fixed from Firefox 45 onwards.

like image 84
Robert Longson Avatar answered Oct 13 '22 20:10

Robert Longson