Closed Bug 264170 Opened 20 years ago Closed 20 years ago

spurious extra vertical space at beginning of page when DTD is for xhtml

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: cj10, Assigned: bugzilla)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

I will attach to samml pages which differ only on the
content of the <!DOCTYPE ... > directive. One is HTML 2.0
and the other is XHTML 1.0 Transitional.

When displayed by Firefox , the pages differ in the amount
of white space above the first heading. The XHTML version
of the page displays more white space than I would expect.
Is this a bug?

IE, displays the two pages identically, without the extra
space.



Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Attached file HTML 2.0 version
Attached file XHTML 1.0 version
Summary: spurious extra vertica space at beginning of page when DTD is for xhtml → spurious extra vertical space at beginning of page when DTD is for xhtml
*** Bug 264171 has been marked as a duplicate of this bug. ***
See:
http://lxr.mozilla.org/seamonkey/source/layout/html/document/src/quirk.css#124
In quirks mode body > h1:-moz-first-node get margin-top:0;
This is done to be compatible with IE in quirks mode.

See also:
http://www.mozilla.org/docs/web-developer/quirks/
(In reply to comment #4)

Thank you very much. I understand now. 

Ok, marking INVALID then.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: