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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Apr 29 13:56:06 PDT 2009


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





------- Comment #12 from jshin at chromium.org  2009-04-29 13:56 PDT -------
Created an attachment (id=29893)
 --> (https://bugs.webkit.org/attachment.cgi?id=29893&action=view)
another test case : <pre> vs monospace, serif, sans-serif


There's another twist to this issue (below is rehash of a part of what I wrote
at
http://code.google.com/p/chromium/issues/detail?id=10524#c8 with what Ojan
replied. I'm not including what I heard from Frank Tang about two font size
preferences.).

This test file has 4 paragraphs. The 1st is <pre> while the 2nd,3rd and 4th are
divs styled with 'monospace', 'serif' and 'sans-serif'.

In IE8, the first is rendered in a smaller font than the other three. This is
because IE8 (IE 6/7, too) apparently has a UA style for <pre> with 'font-size:
small' (or something like that). 

In Firefox, if the encoding is set to one of CJK encodings, all four are
rendered at the same size. If not, the first two paras are smaller than the 3rd
and the 4th. This is because 

1) Firefox uses the same font size for <pre> and 'font-family: monospace' 
2) For CJK langgroups, the monospace font size is identical to that of
proportional font size (other 4 CSS generic families).
For most other langgroups, the size for CSS 'monospace' generic is smaller than
that for other generic families. 

In Safari, the behavior is the same as Firefox with the encoding set to one of
non-CJK encodings (e.g. ISO-8859-1). BTW, I can make a single test file showing
the impact of changing the encoding in Firefox. 

After making a change to make webkit behave identically to Firefox (i.e. only
'font-family: monospace' will use the font size for fixed-width), we may
consider making webkit behave similarly to IE7/8. (Ojan's #3 at
http://code.google.com/p/chromium/issues/detail?id=10524#c10 ) with the compat
impact evaluated.

And, then we can also think about replacing the font size UI with the page zoom
level UI. The font size pref. is (mainly) for accessibility needs, but just
setting the font size larger is likely to break the page layout. Now that
webkit has page-zoom implemented, it makes more sense to have a page zoom-level
UI. 


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list