HTML <select> <option> CSS stylings not appearing
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: jack, Unassigned)
Details
Attachments
(1 file)
|
32.29 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0
Steps to reproduce:
Changing CSS properties in <select> <option> dropdowns appear to have no effect. The issue can be produced with the following code:
<html>
<select>
<option>Default Option</option>
<option style="background-color: red">Red Option</option>
<option style="background-color: orange">Orange Option</option>
<option style="background-color: yellow">Yellow Option</option>
</select>
</html>
My system is running Firefox 89 on Arch Linux with the Gnome desktop.
Actual results:
All options from the <select> dropdown have the same background.
Expected results:
Each option should have a different background, as indicated in the CSS styling. Attached I have a screenshot showing the code on Firefox vs. Chromium.
Updated•4 years ago
|
Description
•