Page MenuHomePhabricator

CSS Components on IE11: Icons are not displayed
Closed, DeclinedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

Icons don't appear for any of the components that use icons.

Screenshot 2023-04-25 at 4.18.09 PM.png (638×492 px, 58 KB)

What should have happened instead?:

Icons should have been rendered.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

IE 11 on Windows 10

Event Timeline

Restricted Application triaged this task as High priority. · View Herald TranscriptApr 25 2023, 11:20 PM

Let's do two things before we invest a lot of time/energy into debugging this:

  1. Let's test in browserstack against the latest Codex version in VueTest to verify the problem still exists
  2. We should check if T288287: Remove IE11 from Basic support ("Grade C") is going anywhere – if that task moves forward then we can mark any IE11-specific bugs as "wontfix" and concentrate on more recent legacy browsers (old Safari, etc).

Based on this Stackoverflow post, I found that I can get the icons to work in IE11 if I make the following changes to the data URI in the background-image rule:

  • Remove ;utf8
  • URL-encode all special characters in the SVG, not just the # in the color code

Screenshot from 2023-04-26 10-46-01.png (301×598 px, 115 KB)

This appears to fix the bug in IE11, and doesn't break Chrome. Next I'll try to write a fix for this in our Less code and test it in IE11, Chrome and Firefox.

Change 912373 had a related patch set uploaded (by Catrope; author: Catrope):

[design/codex@main] [WIP] Icon: Make CSS-only icons work in IE11

https://gerrit.wikimedia.org/r/912373

The attached patch fixes this bug, but I'm not sure that it's a great idea. We'd have to make a number of compromises in our code to support IE11, and rather than doing that I'd prefer to drop support for IE11, per T288287: Remove IE11 from Basic support ("Grade C")

AnneT changed the task status from Open to Stalled.May 17 2023, 5:37 PM
Volker_E renamed this task from CSS Components on IE 11: Icons are not displayed to CSS Components on IE11: Icons are not displayed.May 17 2023, 5:51 PM

Closing this as declined since we're not going to pursue this solution.