Closed Bug 1796824 Opened 2 years ago Closed 2 years ago

Icons in <option> of <select> are only visible after selection

Categories

(Core :: Layout: Text and Fonts, defect)

Firefox 105
defect

Tracking

()

RESOLVED DUPLICATE of bug 1576820
Tracking Status
firefox-esr102 --- wontfix
firefox106 --- wontfix
firefox107 --- affected
firefox108 --- affected

People

(Reporter: nawfal.elkhaznagi, Unassigned)

Details

(Keywords: parity-chrome, parity-edge)

Attachments

(1 file)

Attached image FIREFOX BUG.png

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox for Android

Steps to reproduce:

put icons "fontawesome" in option tag of select.

<div class="select-box">

<select name="sample" id="sample" class="fa">
<option value="">----</option>
<option value="fa fa-address-card" class="fa"> address card</option>
<option value="fa fa-bell" class="fa"> bell</option>
<option value="fa fa-bookmark" class="fa"> bookmark</option>
<option value="fa fa-building" class="fa"> building</option>
</select>

</div>

https://codepen.io/mstanka/pen/mdPBdMa

Actual results:

the icons are only displayed when the option is selected.

Expected results:

the icons should be displayed as is wether they are selected or not.

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Selection' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Selection
Product: Firefox → Core
Component: DOM: Selection → Layout: Text and Fonts
Status: UNCONFIRMED → NEW
Ever confirmed: true

This doesn't work in any browser in macOS either, afaict.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: