Closed
Bug 51518
Opened 24 years ago
Closed 24 years ago
Strict DTD causes <div> to expand
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: jsp, Assigned: clayton)
Details
Attachments
(4 files)
A <div> with only a small <img> has a height equal to the height of the image
unless a strict DTD is specified. If, say, the XHTML Transitional DTD is
specified, the height of the <div> will be greater than that of the image.
Test case to follow.
This is a dup of bug 22274. See that bug for more details.
Also, the issue here is not the strict DTD, but strict layout mode. See
http://www.people.fas.harvard.edu/~dbaron/mozilla/modes
*** This bug has been marked as a duplicate of 22274 ***
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
Well, I'm not sure that I agree with Mozilla's interpretation of 10.8.1 of the
CSS2 spec, but forcing the "display" property to "block" allows me to get the
desired layout and seems otherwise harmless, so I won't argue. (Based on what
I've seen to date, I wouldn't argue with David unless I wanted my ignorance made
plain. He seems to be right an awful lot.)
You need to log in
before you can comment on or make changes to this bug.
Description
•