The following is a rough list of the differences that exist between Mozilla's standards mode and quirks mode behavior. This list is current as of early June 2001 (with a few additions since then, but not a complete list of the changes since then). Since that time the most significant change has been that many of the form control-related quirks have been removed. Another often-noticed change is that, in standards mode, we reject CSS stylesheets that have a MIME type other than text/css.
layout/style/quirk.css
apply.
text/css will still be treated as CSS even if the server gives a Content-Type header other than text/css.
#.
px (except for font-size because that was what Netscape Navigator 4 did, and except for line-height and any other properties where they have distinct meaning).
# is not required, and missing digits are filled in differently)
background attribute sets the background URL to empty only in quirks mode.
xx-small - xx-large) font sizes are calculated slightly differently (see
bug 18136
).
:hover pseudoclass will only be applied to links, images, and form controls, unless the selector includes tag names, ids, or attributes.
line-height) calculations are different to fix
bug 5821
and
bug 24186
(some other issues are described in
bug 22274
).
HR element is treated differently in quirks and strict mode (and arguably wrong in both).
absmiddle (handled incorrectly?) and middle (perhaps incorrectly as well?) are accepted as values of align on table cells, and absmiddle, abscenter, and middle are supported on tables (treated the same as center).
TD, TH, TR, THEAD, TBODY, and TFOOT elements have the document background (and color?) applied to them (when the document background is specified in certain ways?) (see also
bug 70831
).
empty-cells property defaults to hide in quirks mode but show (according to CSS2 errata) in strict mode (see
bug 33244
) (though the correct fix would be to specify it on the HTML TABLE element in quirk.css).
colspan="0" and rowspan="0" are intentionally not handled as described in HTML4.
hspace and vspace are supported on TABLE only in quirks mode.
inset or outset, the border color is based on the background color of the table or of the nearest ancestor with non-transparent background.
nowrap attribute. If the nowrap attribute is present the cell width will never be smaller than the specified fixed width.
BUTTON element (?) can submit only if it lacks a type attribute.
INPUT elements and SELECT elements are computed differently.
marginwidth and marginheight on a FRAME are propagated to the contained BODY.
0* is treated as 1* (see
bug 40383
).
scrolling attribute on FRAME is handled differently.
Page last modified 03:41, 21 Feb 2008 by Jesse