Current implementation of SVG icons comes with disadvantageous side-effects:
- Icons, which aren't pre-defined to be a certain color, are not getting it. Example: Disabled icons. T114044: Disabled icon on any ButtonWidget should be gray. Currently `constructive` (colored).
- Every color fill means another pre-defined file, that might need to be in a
- In v.0.15.4/MediaWiki theme we have 555 SVG icons:
- 265 "-invert.svg", 85 are "-rtl-invert.svg"
- 9 "-destructive.svg"
- 8 "-progressive.svg"
- 6 "-constructive.svg"
- 2 "-warning.svg"
- which leaves us with 265 "normal" icons (ltr and rtl)
- In v.0.15.4/MediaWiki theme we have 555 SVG icons:
- Difficult to add a new icon variant as there are three locations (JSON file, CSS)
- Little shade changes of color are only possible to add by quite a process, compare :hover shade changes of progressive blue
Having separate SVG images of different states result in flickering of image when changing state, like :normal and :hover.Mislead in demo by not inlining background-images in contrast to ResourceLoader- Issues with background-size: contain T93636: Indicator distorted in Firefox 31.5.0 & T94494: All icons and indicators blurry on IE 11, Edge 12-13