WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
23755
[S60] font's face attibute is converted into font-face declaration incorrectly
https://bugs.webkit.org/show_bug.cgi?id=23755
Summary
[S60] font's face attibute is converted into font-face declaration incorrectly
Lauri Taipale
Reported
2009-02-05 02:33:43 PST
Reproducible with WebKit versions 413 and 525 on the S60 platform. If HTML "font" element's "face" attribute contains a font name that has "independent" numbers in it, e.g. "Font 123 Sans", the font name is converted into CSS "font-family" declaration incorrectly which causes the font name parsing to fail and WebKit to fall back to the default rendering font. When the "face" attribute's value is converted into "font-family" declaration, font names that have spaces in the name are not properly enclosed in quotes ('). E.g. <font face="Font 123 Sans"> becomes font-family: Series 60 Sans; when it should be (according to the CSS specs) font-family: 'Series 60 Sans'; This causes the "CSSParser::ParseFontFamily" method to stop parsing the font name when it encounters the number part of the font name (in this case "123"), causing the font name to be truncated, i.e. "Font 123 Sans" becomes "Font". This then causes the CTextRenderer(Factory) to fall back to the default rendering font (debugged with WebKit 413). (If the font name in the "face" attribute is enclosed in quotes (against the HTML specification), e.g. <font face="'Font 123 Sans'">, then the conversion and parsing is done "correctly".)
Attachments
Add attachment
proposed patch, testcase, etc.
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