Closed Bug 68435 Opened 25 years ago Closed 24 years ago

Incorrectly sizes small table cells w/images if DTD is 4.01

Categories

(Core :: Layout: Tables, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: i.am, Assigned: karnaze)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98) BuildID: 2001010901 When you use the DTD 4.01 (both loose and strict), and have a table with a small cell with a small image (smaller than ~20x10) in it, the table cell will resize to the size of one character(~20x10). If you make the text larger with View> Textsize, the cell enlarges - even though there is no text in the cell. If you use the DTD 4.0 or you omit the DTD, there is no error, so it apparently works fine in quirks mode (also fine in NC 4.73 & IE). Therefore, it must be an error in the standard mode Reproducible: Always Steps to Reproduce: 0. Launch Seamonkey 1. Look at URL above 2. Alternately, look at http://www.yonzie.dk/about_jp_dk.html to see the problem in a more normal context Actual Results: The cell that should be 1x1 or 10x10 is resized to <characterheight>x<characterwidth> Expected Results: Seamonkey should make the cell the size of the image instead of <characterheight>x<characterwidth> either this line <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> or this line <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <body> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td height="1" width="1" bgcolor="#000000"><img src="http://yonzie.dk/space.gif" height="1" width="1"></td> </tr> </table> </body> </html> Also tested with CVS version (an a few other unknown)
Actually, you are seeing the correct CSS2 box model compliant behavior in standard mode here (and the correct backwards-compatible behavior in quirks mode). Bug 57123 has an excellent explanation of Mozilla's behavior in this case. Note that you can trigger quirks mode by having a 4.01 Transitional DTD without the DTD uri... You may want to consider that. Setting "img { display:block }" or "td > img { display:block }" should make this behavior disappear. Marking invalid, since Mozilla is actually doing exactly what it's supposed to be.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Thank you for the info. I've learned something new. I now have some pages that need updating. :-)
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.