https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/v...
It also does other IDE things like completions and MDN docs tooltips (quite handy for infrequent path authoring).
Don't remember why, but I also have a separate SVGO (sort of a formatter) extension.[1] Perhaps because of the brokenness in the other extension (noted on its marketplace page).
[1] https://marketplace.visualstudio.com/items?itemName=1000ch.s...
Changing gradients values or attaching a different gradient can only be done in JS (not CSS, AFAIK).
Luckily XML has namespaces. Contact your local XML specialist for details on how to use them to solve this problem...
hides behind bush, snickers as confused XML specialist tells you that XML namespaces cannot solve this problem
Instead of having a <i class=...></i> to use an icon, which CSS turns into a specific character with a specific font name, which the font turns into a specific glyph from that font (usually SVG), you have a <svg><use ...></svg>
You can use the same icon because FA is already using SVG fonts, you can copy and paste the icons out.
I have taken up coding simple SVG icons by hand, and it's easier than it looks. Also, a great feature of SVG is the <defs> element, which lets one define shapes anywhere in an HTML page, and reuse them anywhere else (ie, not inside the same SVG).
So for example one can have an SVG element at the top of the page that lists a bunch of symbols in a global defs element, and reuse them at will some other places, without loading anything externally, or copy-pasting anything.
Used shapes can also be transformed: different colors for fill or stroke, scaled up or down, rotated, moved, etc.
> Good news, you can achieve fractional ratings with only CSS and inline SVG. Samuel Kraft explains how it works.
The technique presented in that other page is overly complex and convoluted.
Fractional stars can be done very simply in pure SVG with gradients. Here's an example of a grey star filled at 40% with red:
In order to change the fill one just needs to manipulate the offset attribute of the first stop.If there are many stars it can be tiresome to attach a different gradient to each star; what I do in that case is define 8 gradients from 10% to 90% fill, and reference them as needed for each object that needs to be filled to approx. that percentage.