[Bug 13079] Having a relatively simple code: <table cellpadding=0 cellspacing=0 align="center" border=0 width=0954> <tr><td><table cellpadding=0 cellspacing=0 align="center" width=100% border=0> <tr> <td width=100% colspan="3" height=2 class="MNinner_line"><img src="

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13079

--- Comment #5 from Tab Atkins Jr. <jackalmage@gmail.com> 2011-06-29 18:33:36 UTC ---
Oh, derp, perhaps I should actually look at the code first.  You are of course
right, zcorpan.

I hesitate to "correct" such horrible code, but the reason this happens is
because <img> are inline by default.  Inline elements generate a linebox, which
computes its height from the font-size.  Thus, the <td> is forced to be at
least as tall as the linebox.  To fix this, make the <img>s be display:block
instead.

The reason the "HTML 4.01" doctype worked is because the HTML4 Loose doctype
triggers quirks-mode, where <img>s are display:block by default.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 29 June 2011 18:33:39 UTC