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)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
People
(Reporter: viol8r, Assigned: MatsPalmgren_bugz)
References
Details
(Keywords: testcase)
Attachments
(2 files)
526 bytes,
text/html
|
Details | |
555 bytes,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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).
Comment 1•22 years ago
|
||
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
Assignee | ||
Comment 2•20 years ago
|
||
Assignee | ||
Comment 3•20 years ago
|
||
Something like this perhaps...
Assignee | ||
Updated•20 years ago
|
Attachment #154999 -
Flags: review?(bzbarsky)
Comment 4•20 years ago
|
||
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+
Updated•20 years ago
|
Assignee: core.layout.form-controls → mats.palmgren
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: DUPEME
Assignee | ||
Comment 5•20 years ago
|
||
Checked in to trunk at 2004-08-08 11:44 PDT -> FIXED
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment 6•20 years ago
|
||
*** Bug 181621 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 7•20 years ago
|
||
*** 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.
Description
•