Open Bug 962512 Opened 12 years ago Updated 3 years ago

An <option> with specified width does not fill the width of the combobox dropdown menu

Categories

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

defect

Tracking

()

People

(Reporter: noitidart, Unassigned)

Details

(Keywords: testcase)

Attachments

(3 files)

Attached image last child bug.PNG —
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:26.0) Gecko/20100101 Firefox/26.0 (Beta/Release) Build ID: 20131205075310 Steps to reproduce: test case is attached see "last child bug.htm" used css of "*:last-child" to target the select box and then set its width and background-color. background-color is succesfully set, and so is width, however if you open drop down, notice that the last option is not fully highlihghted (see attached image "last child bug.png" summary: If set width of a select box, one of the options does not fully highlight If not last child of span, its treating the final option as last child when ti should be the select box Actual results: last option in the select box is not fully highlihted when open drop down Expected results: last option in select box should fully highlight.
Attached file last child bug.htm —
Reproduced using Firefox 26, latest Nightly 29 and latest Aurora 28 on Windows 7 x64 and Ubuntu 12.04 x64.
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
Hardware: x86 → All
Version: 26 Branch → Trunk
This is kind of expected since we size the <select> to fit the widest <option> + the width of the arrow button. And the dropdown menu is as wide as the <select>. Perhaps we should just ignore any specified width on <option>? That seems to be what IE/Chrome does, fwiw.
Severity: normal → minor
Component: Layout → Layout: Form Controls
Keywords: testcase
Priority: -- → P4
Summary: when last child is select box and apply width, the highlight of last option is messed up → An <option> with specified width does not fill the width of the combobox dropdown menu
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: