Open Bug 1345793 Opened 7 years ago Updated 11 months ago

Fontawesome does not work in select options

Categories

(Core :: Graphics: Text, defect, P3)

52 Branch
defect

Tracking

()

People

(Reporter: sean.darling, Unassigned)

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
Build ID: 20170302120751

Steps to reproduce:

Using FontAwesome in a select option. Clicking the dropdown to show the options.

https://jsfiddle.net/g9d3e4vc/


Actual results:

FontAwesome icon is not displayed in the options. It seems the font is not recognised. (See the jsfiddle)


Expected results:

FontAwesome icon should be displayed. Works in all other browsers. Also works in firefox ESR.
I don't see the problem in 48.0.1, 45.8.0esr, 52.0 and 53.0b1 on Win10.

Can you provide a screenshot to illustrate this problem?
Flags: needinfo?(sean.darling)
Attached image Image of problem
I have added an image of the problem. Experienced on Win10 with v52.0 of Firefox.
Any errors in Web Console?
Component: Untriaged → Graphics: Text
Flags: needinfo?(sean.darling)
Product: Firefox → Core
Attached image Console log
Good question. Have added the console log.
I can reproduce this in current Nightly, provided e10s is enabled (without e10s, it doesn't occur). My guess is that the webfont that was loaded by the content process isn't being sent over to the chrome process (which presents the <select> dropdown) successfully.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [gfx-noted]
Depends on: 1118086
No longer depends on: 1118086
I have the same issue since I updated to FF57, I did not have the issue in previous FF versions.
The drop down does not show the icons and the FF inspector > Fonts, shows "not fonts were found for the current element".
(I use a SELECT like this in a CMS to allow a user to select a FontAwsome icon).

Fiddle: https://jsfiddle.net/7ur24of5/2/
BTW no errors in the console

This issue still exists in FF 90.0.2.

Still not seeing errors in the console, and the font is actually showing up under the Fonts tab in dev tools. WebFonts work just fine elsewhere on the page and inside other DOM elements/tags. Perhaps WebFonts are not being loaded properly into the popups associated with option tags?

Original js fiddle still reproduces this issue.

Relevant:
https://github.com/FortAwesome/Font-Awesome/issues/996

https://bugs.chromium.org/p/chromium/issues/detail?id=568116#c2

FF 91.0.1

This Fiddle https://jsfiddle.net/14606fv9/2/ describes the annoying bug related to not displaying FontAwesome characters in the options list of the HTML <select> tag. Just remove "multiple" from the tag <select multiple> and you'll see square placeholders instead of actual symbols in the dropdown list of options! Definitely, it's not something complex - it's just a bug.

If it helps, the symbols with codes like $#x2700; (scissors) are displayed correctly, but FontAwesome's symbols with codes like &#xf037 ; (align-center) are not displayed in the list of options, but are displayed correctly as a chosen option.

Please, correct it ASAP!!!!!

Same problem here. Quite annoying really. On the same level as no span/divs allowed within an option.

It's so annoying. it's not resolved yet.

I had to change design to this problem. Works fine on every other browser. Hope it gets fixed soon.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: