I have SVG line with specified stroke attribute.
<line class="myLine" stroke="red" x1="40" x2="200" y1="100" y2="100" stroke-width="5" />
And there is a CSS class that has stroke value in it:
line.myLine
{
stroke:green
}
How come CSS class actually takes priority over explicit svg attribute and the line renders as green???
At the same time if I add style attribute with stroke in it, then style overrides css class & stroke svg attribute. So the priorities order is the following:
- style attribute
- css class
- svg attribute
How come SVG attribute is the lowest priority???