[Webkit-unassigned] [Bug 19161] wrong font size when css font-family includes monospace

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 6 09:21:11 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=19161





--- Comment #19 from Eric Seidel <eric at webkit.org>  2009-08-06 09:21:08 PDT ---
It turns out that our current font fallback behavior is:

<div style="font-family: foo, bar">
<div style="font-family: monospace"></div>
</div>

The font-family list carried on the inner div is "monospace, bar", which is not
what I would have expected.  I would have expected just "monospace" or
"monospace, foo, bar".  But maybe that's correct behavior?

You can see this behavior implemented in the for loop inside
CSSStyleSelector::applyProperty() case CSSPropertyFontFamily.

Why this matters is that this breaks my new "useFixedDefaultSize" logic.
    bool FontDescription::useFixedDefaultSize() const { return genericFamily()
== MonospaceFamily && !family().next() && family().family() ==
"-webkit-monospace"; }
I had assumed the fallback list for the inner div would only have included
"monospace".

Hyatt?  Could you tell me if our family list behavior is correct here?

-- 
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