E
E
ermax_inc2015-09-30 20:41:40
HTML
ermax_inc, 2015-09-30 20:41:40

[SVG] Why is the svg in the background image fuzzy in IE?

6208b52a4e784eee9b8a973396d1b235.png
The whole point is in the picture.
If we insert SVG through background-image, it becomes blurry, fuzzy.
We insert through -img- , everything is displayed normally.
Browser IE 11 .
How can I fix background-image so that the image is crisp?
PS: I've been struggling for an hour, I can't solve the problem (((
UPDATE: I solved the problem. In my layout for the div
container where the background image was svg , the border-radius was used . It is in it that the whole problem. Moreover, it lathers not only svg , but and normal png/jpg .This is a clear bug in the donkey (IE11), it is enough to apply the border-radius: 0 rule for the donkey;
and images become clear.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Korolev, 2015-09-30
@Apathetic

The answer is simple: background-image cannot be fixed in any way until the IE developers themselves fix this bug. The problem occurs most often if relative units are used (both in the container containing the svg and in the svg itself). So either use absolute units (not sure if the problem goes away) or inline svg.

W
WebAirStudio, 2020-05-15
@WebAirStudio

Also faced this problem.
Used rem with high precision, like background-size:1.56789rem;
The solution is to round up to tenths. background-size:1.5rem;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question