Consider dropping font size quirk
https://bugs.webkit.org/show_bug.cgi?id=84469
Summary Consider dropping font size quirk
Simon Pieters (:zcorpan)
Reported 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
Attachments
Shane Stephens
Comment 1 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?
Simon Pieters (:zcorpan)
Comment 2 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
Shane Stephens
Comment 3 2012-06-20 21:33:22 PDT
Thanks for the additional information.
j.j.
Comment 4 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
j.j.
Comment 5 2012-07-08 06:09:08 PDT
Sorry my previous comment is nonsense. The monospace issue is in standards mode (but should change anyway).
Simon Pieters (:zcorpan)
Comment 6 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
Note You need to log in before you can comment on or make changes to this bug.