gallery icon indicating copy to clipboard operation
gallery copied to clipboard

SVG icons are not resized on IE

Open oparoz opened this issue 9 years ago • 5 comments

From @oparoz on September 13, 2015 12:50

tiny

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Copied from original issue: owncloud/gallery#334

oparoz avatar Sep 04 '16 11:09 oparoz

The solution is to use the PNGs on IE.

oparoz avatar Sep 04 '16 11:09 oparoz

From @karlitschek on September 13, 2015 15:8

@jancborchardt any idea?

oparoz avatar Sep 04 '16 11:09 oparoz

It's a known issue http://caniuse.com/#search=svg

IE9-11 desktop & mobile don't properly scale SVG files. Adding height, width, viewBox, and CSS rules seem to be the best workaround.

One solution in order to keep SVGs for IE is to fix all the media type icons in core.

oparoz avatar Sep 04 '16 11:09 oparoz

Keeping open, in case someone wants to play with SVG and IE.

oparoz avatar Sep 04 '16 11:09 oparoz

In order to see the difference, you need to upload a broken JPG to a folder and to load that folder in Gallery in both Firefox and IE. One will use the SVG icon, the other the fallback.

oparoz avatar Sep 04 '16 11:09 oparoz