Closed Bug 185098 Opened 22 years ago Closed 20 years ago

Font style ignored if <option selected="selected"> in a <select> that contains an optgroup

Categories

(Core :: Layout: Form Controls, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: viol8r, Assigned: MatsPalmgren_bugz)

References

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (compatible; Konqueror/3; Linux 2.4.19; X11; i686; da, POSIX)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130

If you make a <select> containing one or more <optgroups> the font style (css - 
select) is ignored, but it only happens if one or more <option> is selected 
with <option selected="selected">. If nothing is selected upon pageloading it 
works fine. 

Reproducible: Always

Steps to Reproduce:
1. Build a select, with some optgroups 
2. Make them selected in html 
3. View the problem... 
Actual Results:  
The font style was ignored 

Expected Results:  
Used the correct font for the options (and optgroups).
Um... we set a font on the <optgroup> in the UA stylesheet, as well as on the
<option>s inside <optgroup> (since their font needs to be different from the
<optgroup>s).  In other words, this situation is no different from the fact that
an <h1> does not inherit the <body> font.  And this is already filed, iirc (and
should be invalid, imo).
Whiteboard: DUPEME
Attached file Testcase
Attached patch Patch rev. 1Splinter Review
Something like this perhaps...
Attachment #154999 - Flags: review?(bzbarsky)
Keywords: testcase
Comment on attachment 154999 [details] [diff] [review]
Patch rev. 1

Yeah, this is reasonable.  r+sr=bzbarsky.

For future reference, using more context and the -p option makes the diffs
easier to read....
Attachment #154999 - Flags: superreview+
Attachment #154999 - Flags: review?(bzbarsky)
Attachment #154999 - Flags: review+
Assignee: core.layout.form-controls → mats.palmgren
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: DUPEME
Checked in to trunk at 2004-08-08 11:44 PDT

-> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
*** Bug 181621 has been marked as a duplicate of this bug. ***
*** Bug 276870 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: