<svg width="300" height="200">
<line x1="40" y1="50" x2="260" y2="50" stroke-width="10" stroke="tomato" stroke-dasharray="10"></line>
<line x1="40" y1="100" x2="260" y2="100" stroke-width="20" stroke="gold" stroke-dasharray="50 15"></line>
<line class="shape-dasharray" x1="40" y1="150" x2="260" y2="150" stroke-width="20" stroke="lightseagreen"></line>
</svg>
svg {
border: 1px solid #dddddd;
}
.shape-dasharray {
stroke-dasharray:5 10 15 20;
}
Цель 2
а второй линии — со значением 50 15. выдает ошибку