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
The thing is both Chrome and Safari animate it's <symbol> within the parent SVG-sprite despite the fact that it has position: absolute; width: 0; height: 0 styles:
Here is what Chrome's Performance tab shows:
Replacing the sprite's styles with a single display: none property fixes the problem:
So I wonder what is the reason in hiding a sprite using position: absolute; width: 0; height: 0? I've checked display: none and it works fine in the latest versions of Chrome, FF and Safari and even in IE 11.
The text was updated successfully, but these errors were encountered:
We have this animated SVG icon in our project:
The thing is both Chrome and Safari animate it's
<symbol>
within the parent SVG-sprite despite the fact that it hasposition: absolute; width: 0; height: 0
styles:Here is what Chrome's Performance tab shows:
Replacing the sprite's styles with a single
display: none
property fixes the problem:So I wonder what is the reason in hiding a sprite using
position: absolute; width: 0; height: 0
? I've checkeddisplay: none
and it works fine in the latest versions of Chrome, FF and Safari and even in IE 11.The text was updated successfully, but these errors were encountered: