Bug 110721

Summary: css overflow attribute does not work in TD
Product: [Applications] konqueror Reporter: Dick <kde>
Component: khtml rendererAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description Dick 2005-08-13 20:15:56 UTC
Version:            (using KDE KDE 3.4.2)
Installed from:    Mandriva RPMs

When a table has table-layout:fixed specified and a TD with overflow:hidden set contains a text that overflows, it is not truncated. 

The text is hidden in MSIE and in firefox.

See this example:

<html>
<head>
<title>TD overflow bug</title>
<style type="text/css">

.tbl {
   table-layout:fixed;
   width: 100px;
}
.tbl TR {
   height:18px;
   line-height:18px;
}

.tbl TD {
   height: 18px;
   width: 50px;
   overflow: hidden;
   white-space: nowrap;
}
.tbl TD DIV {
    overflow: hidden;
}
</style>
</head>
<body>
<table class="tbl" cellpadding="0" cellspacing="0">
<tr>
<td>this text should be truncated, but it is not!</td>
<td><div>if in a div then it is truncated!</div></td>
</tr>
</table>
</body>
</html>
Comment 1 Germain Garand 2006-07-06 19:16:43 UTC
fixed by r559131