Answer the question
In order to leave comments, you need to log in
How to define element property for individual browser?
So it goes.
All browsers clumsily display some svg. Everything except FF.
What is the ugliness? The fact that the svg may have the viewbox specified incorrectly (does not match the size of the SVG itself) and in most browsers there are spaces above and below or on the right and left, depending on which side is smaller.
And then a thick bug comes out - for all browsers I set positioning and negative top / left to align SVG, and FF normally displays SVG and the icon, due to positioning, shifts to the side.
What to do in this case? How to be?
Answer the question
In order to leave comments, you need to log in
I remembered that I have the best SVG editor - Sketch (windows in flight).
I opened it in it, exported it, and it normally cropped and set the required dimensions for the icon.
Profit
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question