Closed Bug 1751644 Opened 3 years ago Closed 3 years ago

Custom-styled <select> options have much less padding than other options, on linux with dom.forms.select.customstyling enabled

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

VERIFIED FIXED
99 Branch
Tracking Status
firefox99 --- verified

People

(Reporter: dholbert, Assigned: emilio)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

STR:

  1. In Firefox (or Nightly) on Linux, set pref dom.forms.select.customstyling to true and restart Firefox to let that change take effect.
  2. Load this testcase:
data:text/html,<select><option>1</option><option>2</option><option style="background:red">3
  1. Click to open the dropdown menu.

ACTUAL RESULTS:
Option 3 has much less padding (it's less indented) as compared to the other options.

EXPECTED RESULTS:
Consistent padding. I've only customized the background on that option; I wouldn't expect that to affect layout/positioning.

Attached image screenshot

(I think bug 1406865 comment 10 explains approximately why this happens right now.)

Native ones also have a big-ish padding (set by the theme).

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/329994288845 Don't shrink padding of non-native menulist items. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
QA Whiteboard: [qa-99b-p2]

Reproducible on a 2022-01-23 Nightly build on Linux x86_64(Ubuntu 20.04). I can confirm this is fixed on Firefox 99.0b8(20220328190900) and Nightly 100.a1(20220328213646) on Linux x86_64(Ubuntu 20.04).

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-99b-p2]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: