Closed Bug 564299 Opened 14 years ago Closed 14 years ago

Multiple select can have scrollbars

Categories

(Firefox for Android Graveyard :: General, defect)

x86
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: martijn.martijn, Assigned: mfinkle)

Details

(Keywords: testcase)

Attachments

(2 files)

Attached file testcase
See testcase, the first multiple select has scrollbars (weird scrollbars), the second not. I guess the first one shouldn't show up scrollbars at all.

My guess is that the patch from bug 500208 has something to do with it.
Very strange. Just adding a "size" attribute to the <select> fixes the problem:

<select multiple style="100px" size> ...

Must be something with the CSS in content.css
Found it. We assumed that the presence of the "size" attribute was the only thing that controlled whether a <select> was a listbox or a dropdown. However, the "multiple" attribute will force the <select> into a listbox mode even if the "size" attribute is omitted.

Patch coming up.
Attached patch patchSplinter Review
Anytime we do a :not([size]) we also need to do a :not([multiple])

That's what this patch does. Please test it out and make sure I didn't break focus highlight or any other CSS states. It fixes this testcase and seems to work ok on:
http://people.mozilla.org/~mfinkle/select.html
and:
http://www.vingtetun.org/tmp/forms.html
Assignee: nobody → mark.finkle
Attachment #444023 - Flags: review?(21)
pushed m-b:
http://hg.mozilla.org/mobile-browser/rev/73c274b96744

pushed m-1.1:
http://hg.mozilla.org/releases/mobile-1.1/rev/a14f3f5a859a
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
verified FIXED on builds:

Mozilla/5.0 (X11; U; Linux armv7l; Nokia N900; en-US; rv:1.9.2.5pre) Gecko/20100511 Namoroka/3.6.5pre Fennec/1.1b2pre

and

Mozilla/5.0 (X11; U; Linux armv71; Nokia N900; en-US; rv:1.9.3a5pre) Gecko/20100511 Namoroka/3.7a5pre Fennec/2.0a1pre
Status: RESOLVED → VERIFIED
Flags: in-testsuite?
Flags: in-litmus?
minus'ing the litmus testcase nomination as this works a lot better as a unit test.
Flags: in-litmus? → in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: