SVG Line with Gradient Stroke Won't Display Straight

前端 未结 3 1374
迷失自我
迷失自我 2020-11-27 20:45

I\'m attempting to replicate an


with SVG. Now, making a straight line with SVG works perfectly, but the second I stroke it with a gradient it will no
3条回答
  •  时光说笑
    2020-11-27 21:24

    Assuming you do not want any in-accuracy at all, you can change the line to a filled path as below

    
    

    or alternatively to a filled rect as below

    
    

    It is also interesting to note that this issue only affects vertical and horizontal lines. Slanted line display correctly.

提交回复
热议问题