Last Comment Bug 494507 - Setting listbox (select/option elements) background-color on body load hides the dropdown button
: Setting listbox (select/option elements) background-color on body load hides ...
Status: NEW
:
Product: Core
Classification: Components
Component: Layout (show other bugs)
: Trunk
: All All
: -- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
Mentors:
Depends on: 393325
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-22 15:51 PDT by Jason Oster (:Parasyte)
Modified: 2009-12-04 07:09 PST (History)
5 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Test case (614 bytes, text/html)
2009-05-22 15:52 PDT, Jason Oster (:Parasyte)
no flags Details
Screen shot: actual result (2.07 KB, image/png)
2009-05-22 15:56 PDT, Jason Oster (:Parasyte)
no flags Details
Screen shot: expected result (2.18 KB, image/png)
2009-05-22 15:56 PDT, Jason Oster (:Parasyte)
no flags Details
Modified test case to work around the bug (640 bytes, text/html)
2009-05-22 15:59 PDT, Jason Oster (:Parasyte)
no flags Details

Description Jason Oster (:Parasyte) 2009-05-22 15:51:20 PDT
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b5pre) Gecko/20090517 Shiretoko/3.5b5pre
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b5pre) Gecko/20090517 Shiretoko/3.5b5pre

See test case and screen shots (coming).

Reproducible: Always
Comment 1 Jason Oster (:Parasyte) 2009-05-22 15:52:35 PDT
Created attachment 379269 [details]
Test case

This page loads with the "drop down" button in the listbox hidden, until the selected option is changed.
Comment 2 Jason Oster (:Parasyte) 2009-05-22 15:56:17 PDT
Created attachment 379270 [details]
Screen shot: actual result
Comment 3 Jason Oster (:Parasyte) 2009-05-22 15:56:39 PDT
Created attachment 379271 [details]
Screen shot: expected result
Comment 4 Jason Oster (:Parasyte) 2009-05-22 15:59:32 PDT
Created attachment 379272 [details]
Modified test case to work around the bug

This test case has been slightly modified to include the Mozilla-specific "-moz-appearance" CSS property when setting the background color. This forces the drop down button to display properly.
Comment 5 Jason Oster (:Parasyte) 2009-05-22 16:34:24 PDT
Also effects Windows and OS X, and Firefox 3.0
Comment 6 Ria Klaassen (not reading all bugmail) 2009-05-23 08:34:34 PDT
This works fine for me with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20090522 Minefield/3.6a1pre
I see a normal selectbox with dropdown arrow.
Comment 7 Jason Oster (:Parasyte) 2009-05-26 07:19:01 PDT
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2a1pre) Gecko/20090525 Minefield/3.6a1pre

Same result as Comment #2
Comment 8 Boris Zbarsky [:bz] 2009-06-08 07:33:06 PDT
Hmm.  This is fun.  The problem is that changing the background color triggers a repaint... but not a reflow.  But changing it drops native theming, and the dropdown marker for combobox is hidden or shown during reflow depending on whether it's themed (on Mac and Linux, at least).

So not a DOM issue at all; this is a pure layout problem.  Fixing bug 393325 should help here; marking dependent and will retest once that's fixed.
Comment 9 Jason Oster (:Parasyte) 2009-12-04 07:09:14 PST
I just hit this bug in the wild.

1) Goto: http://my.dot.tk/registration/availability?domainname=moz
2) Gasp at the price listed in the listbox. ;)
3) Hover your mouse over the listbox.

Result: On hover, the same defect can be seen (the "down arrow button" is invisible).  Selecting any other option in the listbox will make the button visible.

Note You need to log in before you can comment on or make changes to this bug.