S
S
Sasha Melnik2015-08-04 15:32:45
Android
Sasha Melnik, 2015-08-04 15:32:45

Why is there a problem with displaying an svg sprite in the standard android browser?

There is a list of categories, each of which has its own icon (svg sprite given by background-image). In general, icons are displayed correctly, but in some versions of the standard browser for Android, the sprite is not displayed correctly - so that it all fits into the icon block (as I understand it, the background-size property does not work). How can this problem be solved?
Code:
navigator.userAgent.
cat_title_img{
background-repeat: no-repeat;
background-image: url('/img/icons/icon_rubric_mal_index.svg');
background-position: top left;
width: 30px
height: 30px;
background-size: 380px 400px;
float: left;
}
/* for a specific category */
.cat_title_img.category_107 {
background-position: -77px -38px; }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question