You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of v1.0.5 convertStyleToAttrs produces output that conflicts with IE11 in a case if CSS variables are used for colors. Example of such SVG is export of icomoon.io.
Here is test IcoMoon project, it can be loaded here. It consists of single facebook.svg icon. You can export SVG icons for the project by using Generate SVG & More below and then Download. Result of this export is symbol-defs.svg. As you can see - it basically consists of
As you can see - result for fill attribute now contains CSS variable that is not supported in IE11. As a result - icon looks like plain black square in IE11.
Of course it is possible to just disable convertStyleToAttrs plugin in this case but maybe it worth to handle such situation by e.g. adding plugin that will strip CSS variables or detect CSS variable and not replace attribute in this case.
The text was updated successfully, but these errors were encountered:
As of v1.0.5
convertStyleToAttrs
produces output that conflicts with IE11 in a case if CSS variables are used for colors. Example of such SVG is export of icomoon.io.Here is test IcoMoon project, it can be loaded here. It consists of single
facebook.svg
icon. You can export SVG icons for the project by usingGenerate SVG & More
below and thenDownload
. Result of this export issymbol-defs.svg
. As you can see - it basically consists ofAttempt to optimize this project using svgo with this command line:
results into following
<path>
:As you can see - result for
fill
attribute now contains CSS variable that is not supported in IE11. As a result - icon looks like plain black square in IE11.Of course it is possible to just disable
convertStyleToAttrs
plugin in this case but maybe it worth to handle such situation by e.g. adding plugin that will strip CSS variables or detect CSS variable and not replace attribute in this case.The text was updated successfully, but these errors were encountered: