[Webkit-unassigned] [Bug 35643] New: [Qt] Use of 'serif' and 'sans-serif' in css overrides higher priority font families if present
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 3 03:29:19 PST 2010
https://bugs.webkit.org/show_bug.cgi?id=35643
Summary: [Qt] Use of 'serif' and 'sans-serif' in css overrides
higher priority font families if present
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Keywords: Qt
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vestbo at webkit.org
This bug report originated from issue QTBUG-6730
http://bugreports.qt.nokia.com/browse/QTBUG-6730
--- Description ---
In css stylesheets, if you include the 'serif' or 'sans-serif' font families in
your font hierarchy they will be used, regardless of priority. For example:
<p>font-family: "Lucida Grande", "Lucida Sans Unicode", Trebuchet, Tahoma,
sans-serif</p>
<p>Although the Lucida Grande font is present, Webkit uses the system
sans-serif font for text rendering. If you simply remove the sans-serif, the
correct font (Lucida Grande) is used:</p>
<p>font-family: "Lucida Grande", "Lucida Sans Unicode", Trebuchet, Tahoma</p>
<p>Note that is behavior only occurs with the 'serif' and sans-serif (default)
fonts. Our workaround is just to not specify serif or sans-serif as backup
fonts and just assume that one of the previously listed fonts will be present.
A few other comments:</p>
<ul class="alternate" type="square">
<li>This bug only appears for Qt 4.6.0. The css stylesheets worked
properly on previous versions of Qt.</li>
<li>The bug is identical on mac and windows.</li>
<li>The bug does NOT appear with the latest version of Safari (4.0.3) which
also uses WebKit .</li>
</ul>
--- Comments ---
Am I right that this issue with with Webkit, and not with the QTextDocument or
the QWidget stylesheet?
In this case, it should be reported on bugs.webkit.org in the QtWebkit Qt
component
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list