Open Bug 1483714 Opened 7 years ago Updated 3 years ago

Unnecessary scroll bar in drop-down when <select> has background style

Categories

(Core :: Layout: Form Controls, defect, P3)

62 Branch
Unspecified
macOS
defect

Tracking

()

Tracking Status
firefox61 --- affected
firefox62 --- affected
firefox63 --- affected

People

(Reporter: cheery.egg6079, Unassigned)

Details

Attachments

(2 files)

Attached image screen-shot.png
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0 Build ID: 20180802174131 Steps to reproduce: When a <select> has a background style applied, the drop-down menu that appears when clicking it has an unecessary scroll bar, at least on Firefox 62 on macOS. (The fact that background styles on the <select> element itself affect the drop-down menu at all is very irritating, tbh. Though pretty much everything about <select> is, i guess.) See attached screen-shot and test case. Actual results: When the <select> has a background style specified in CSS, the associated drop-down menu has an unnecessary vertical scroll bar (which only scrolls by a pixel or two in either direction). Expected results: The drop-down menu should only have a scroll bar when it's too big for the view port or it exceeds the maximum number of menu items (which is 20, i think).
Attached file test case.html
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:62.0) Gecko/20100101 Firefox/62.0 20180817100105 I have tested this report on Windows and OS X 10.12 using latest Nightly, Beta and Release build. I was able to reproduce the mentioned behavior when loading the attached test case in comment 1. When the drop-down is shown an unnecessary vertical drop-down is displayed. Actually, the scrollbar can be moved only with 1 or 2px.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
OS: Unspecified → Mac OS X
Product: Firefox → Core
Priority: -- → P3
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: