Bug 84469 - Consider dropping font size quirk
Summary: Consider dropping font size quirk
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-20 11:03 PDT by Simon Pieters (:zcorpan)
Modified: 2016-02-09 02:37 PST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Pieters (:zcorpan) 2012-04-20 11:03:04 PDT
http://trac.webkit.org/browser/trunk/Source/WebCore/css/CSSStyleSelector.cpp?rev=113922#L4920

IE and Opera don't have this quirk, which means it should be possible to align quirks mode and standards mode font sizes.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1481 in Opera, Preferences->Webpages (change both normal font size and monospace font size; restart.

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1484 in IE9 I didn't find anywhere to change the default font size, but it appears to make no difference between compat quirks vs compat standards or ie9 quirks vs ie9 standards.

Gecko has this quirk, but I've filed a bug on them to drop it too. https://bugzilla.mozilla.org/show_bug.cgi?id=747464
Comment 1 Shane Stephens 2012-04-25 21:49:54 PDT
Quirks mode exists to preserve old, non-standard behaviors for websites that were coded against those behaviors. Even though IE and Opera don't have this particular quirk, there may well be content out there that relies on this particular font size selection in Firefox and in WebKit - hence we need to continue supporting it, right?
Comment 2 Simon Pieters (:zcorpan) 2012-04-26 05:27:33 PDT
It seems unlikely considering the very limited cases where this makes a difference. It really only kicks in if the user has changed the default font size (in which case things are likely to break for other reasons anyway), or the author has specified font-size:x-small or so with a monospace font, where there would be a 1px difference. Since different users have different fonts anyway, and browsers already differ in this area, I think the number of pages that rely on this quirk is extremely low.

I'm interested in getting interoperability between browsers, even for quirks mode. See http://simon.html5.org/specs/quirks-mode
Comment 3 Shane Stephens 2012-06-20 21:33:22 PDT
Thanks for the additional information.
Comment 4 j.j. 2012-07-08 05:27:06 PDT
Simon, is this bug what bug 19161 comment 10 talks about?
Seems this quirk is missing on Mozilla docs?
https://developer.mozilla.org/en/Mozilla_Quirks_Mode_Behavior
Comment 5 j.j. 2012-07-08 06:09:08 PDT
Sorry my previous comment is nonsense. The monospace issue is in standards mode (but should change anyway).
Comment 6 Simon Pieters (:zcorpan) 2016-02-09 02:37:49 PST
FYI it appears there is now interest in fixing this in Gecko:
https://bugzilla.mozilla.org/show_bug.cgi?id=747464#c3

I also filed a bug for Chromium:
https://code.google.com/p/chromium/issues/detail?id=585390