Closed Bug 231713 Opened 21 years ago Closed 21 years ago

background-color for <SELECT> doesn't work if SIZE attribute is used

Categories

(Core :: CSS Parsing and Computation, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 224974

People

(Reporter: Petr.Toman, Assigned: dbaron)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; cs-CZ; rv:1.6) Gecko/20040113

Setting background-color of <SELECT> element via CSS does not work if SIZE
attribute is used (or its value is greater than zero). It was ok with Mozilla 1.4.

Reproducible: Always

Steps to Reproduce:
Compare the following example in Mozilla 1.6 and MSIE 6.0.

<HTML>
<HEAD>
   <STYLE>
      .mystyle {
      	color: Yellow;
      	background-color: Green;
      }
   </STYLE>
</HEAD>

<BODY>

<SELECT SIZE=6 CLASS="mystyle">
   <OPTION>1...
   <OPTION>2...
   <OPTION>3...
</SELECT>

</BODY>
</HTML>
Actual Results:  
The background color of the list is *white* in Mozilla 1.6.

Expected Results:  
In the list, there should be yellow numbers on a green background.

For SIZE=0 Mozilla 1.6 renders the combo properly.
Attachment 137058 [details] from bug 181490 shows exactly this.

-> DUPLICATE

*** This bug has been marked as a duplicate of 181490 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
That attachment was in the wrong place probably.

-> DUPLICE (right bug this time)

*** This bug has been marked as a duplicate of 224974 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.