- adding without additional markup
- css-based styling
- reduce amount of http requests
- per-icon
viewBox
- SVG library file with:
- Icons in
<symbol>elements (with individual viewBoxes) - Referenced via
<use> <use>nodes with public IDs- Only one visible via
:not(:target)CSS-in-SVG styling
- Icons in
- Use via
library.svg#my-idto retain icon color - Use via
mask-imageto override color:- specify color as
background-color - specify size via
mask-size
- specify color as
- SVG
<mask>-- does not support settingmask-size