WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
9810
OPTGROUP label text is using the default font instead of Lucida Grande
https://bugs.webkit.org/show_bug.cgi?id=9810
Summary
OPTGROUP label text is using the default font instead of Lucida Grande
Chris Petersen
Reported
2006-07-09 12:21:53 PDT
* SUMMARY I'm noticing OPTGROUP value text appears in the wrong font (times). See attach screen shot. * STEPS TO REPRODUCE 1. With a custom css sheet applied, (select { -webkit-appearance: menulist; box-sizing: border-box; }, open attached test case "OPTGROUP_test.html" 2. Mouse down on menu and notice the font used for "Cities". This is the wrong font used for the label text. * RESULTS The correct font should be used for label text in a OPTGROUP but isn't * REGRESSION Yes, tested with NB
r15239
. Looks correct in stock 10.4.7 .
Attachments
OPTGROUP test case
(440 bytes, text/html)
2006-07-09 12:22 PDT
,
Chris Petersen
no flags
Details
sample screen shot comparing nativepopup menu and stock 10.4.7
(54.84 KB, image/png)
2006-07-09 12:25 PDT
,
Chris Petersen
no flags
Details
patch, including change log
(1.44 KB, patch)
2006-07-10 21:55 PDT
,
Darin Adler
ggaren
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Chris Petersen
Comment 1
2006-07-09 12:22:59 PDT
Created
attachment 9301
[details]
OPTGROUP test case
Chris Petersen
Comment 2
2006-07-09 12:25:18 PDT
Created
attachment 9302
[details]
sample screen shot comparing nativepopup menu and stock 10.4.7
Chris Petersen
Comment 3
2006-07-09 13:34:31 PDT
This issue has been filed as <
rdar://problem/4619534
>
Darin Adler
Comment 4
2006-07-10 21:06:43 PDT
The code is a bit mixed up. It basically says that if your font is the default font, then use the OS X default font for the menu item. That means that instead of Times, you get Lucida Grande. But then if anything at all is different from the default, you get the specified font. Since optgroup elements are bold, you get Times Bold. I have no idea why we get Helvetica for the options in the group!
Darin Adler
Comment 5
2006-07-10 21:22:48 PDT
I see the problem. Style inheritance goes through the render tree. But since option and optgroup elements don't have render tree elements, they can only inherit from the select element, not from other option and optgroup elements. This should be easy to fix.
Darin Adler
Comment 6
2006-07-10 21:38:13 PDT
All those theories seem to be wrong. The style inheritance is working fine. But somehow the font family name is "LucidaGrande" without a space. And that ends up being not found so we fall back on Times.
Darin Adler
Comment 7
2006-07-10 21:55:46 PDT
Created
attachment 9352
[details]
patch, including change log
Geoffrey Garen
Comment 8
2006-07-10 22:26:38 PDT
Comment on
attachment 9352
[details]
patch, including change log r=me land test case too, please
Darin Adler
Comment 9
2006-07-10 22:59:51 PDT
Committed revision 15329.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug