Web form select with background color set in javascript onload event drawn incorrectly

NEW
Unassigned

Status

()

Core
Layout: Form Controls
9 years ago
9 years ago

People

(Reporter: Eemeli Aro, Unassigned)

Tracking

(Depends on: 1 bug, {regression})

Trunk
x86
All
regression
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008061017 Firefox/3.0
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9) Gecko/2008061017 Firefox/3.0

Setting the background color of a form select element using a Javascript onload event results in the component being drawn incorrectly and with a 1px smaller than intended border.

In Ubuntu Hardy a single-line select will also have its arrow button drawn as a solid block of the background color.

Changing the value of a single-line select box  or another select box inside the same parent element will redraw it with the correct border and arrow button.

Setting another property of the element's style (eg. display, but not textDecoration) will result in the select box being drawn correctly.

Reproducible: Always




See the following attached test cases for examples
(Reporter)

Comment 1

9 years ago
Created attachment 330031 [details]
test case
(Reporter)

Comment 2

9 years ago
Created attachment 330032 [details]
test case -- same as above, but with an added element.style.position = 'relative'; command in the onload event handler
(Reporter)

Updated

9 years ago
Version: unspecified → 3.0 Branch
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Version: 3.0 Branch → Trunk
Confirmed with latest trunk on Windows XP. Regression range is: 
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1169071680&maxdate=1169073119
so this could be caused by Bug 366722.
Blocks: 366722
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
Probably a duplicate of bug 393325.
Depends on: 393325
You need to log in before you can comment on or make changes to this bug.