Open Bug 904000 Opened 6 years ago Updated 6 years ago

Almost standards mode not triggered (or applied much differently than expected) with transitional doctype

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set

Tracking

()

People

(Reporter: svl-bmo, Unassigned, NeedInfo)

References

()

Details

Attachments

(1 file)

The attached testcase (and linked URL) has the following doctype:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
If I read https://developer.mozilla.org/en-US/docs/Gecko%27s_%22Almost_Standards%22_Mode and http://hsivonen.iki.fi/doctype/ correctly, this should trigger almost standards mode. It does in Chromium 28 and IE 10, but not in current aurora - http://hg.mozilla.org/releases/mozilla-aurora/rev/4ea223de889c - stable, or as far back as Firefox 8.

I can't escape the feeling that I must be missing something very obvious (and if so apologize for wasting time), but in any case, there's a distinct rendering difference between gecko and Chrome/IE here, which is being experienced as a bug.
This document ends up in almost-standards mode correctly.  You can see this if you actually put the images in table cells, say.  Or removing the <a> around the image....

I'm not aware of a spec for almost-standards mode, offhand.  David, what should happen for this case in almost-standards mode?
Flags: needinfo?(dbaron)
http://quirks.spec.whatwg.org/ does specify almost standards mode, but I'm not particularly confident that it's correct enough to be worth following for the line height quirks, which are the ones related to almost-standards mode.
You need to log in before you can comment on or make changes to this bug.