Bug 39381 - Zero width TD may cause child TD's of sibling TD's to have incorrect widths
: Zero width TD may cause child TD's of sibling TD's to have incorrect widths
Status: UNCONFIRMED
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering
: 528+ (Nightly build)
: All All
: P2 Normal
Assigned To: Nobody
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-19 14:55 PDT by fu
Modified: 2012-03-06 18:38 PST (History)
1 user (show)

See Also:


Attachments
Webkit cell width non-zero when should be 0px (634 bytes, text/html)
2012-03-06 18:38 PST, Morris
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description fu 2010-05-19 14:55:18 PDT
The inner most TD of the following is 1px too wide, apparently because of the following 0 width td:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
	<div>
		<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td>
					<table cellpadding="0" cellspacing="0" border="0" width="100%">
						<tr>
							<td>
									<img src="xx.jpg" alt="" />
							</td>
						</tr>
					</table>
				</td>
				<td style="width: 0px;">
				</td>
			</tr>
		</table>
	</div>
</body>
</html>
Comment 2 Morris 2012-03-06 18:38:16 PST
Created attachment 130516 [details]
Webkit cell width non-zero when should be 0px

I am pretty sure this is the same issue. WebKit specific problem (IE*, FF*, Opera work correctly i.e. cell is zero width).