Closed
Bug 224613
Opened 22 years ago
Closed 17 years ago
border-collapse:collapse and tbody overflow:auto cause incorrect rendering of cell borders
Categories
(Core :: Layout: Tables, defect)
Core
Layout: Tables
Tracking
()
RESOLVED
DUPLICATE
of bug 135236
People
(Reporter: bo, Unassigned)
Details
(Keywords: testcase)
Attachments
(1 file)
|
1.22 KB,
text/html
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
This bug may be related to 218229 though it is a tad different. If one specifies
CSS style border-collapse: collapse in a table that has thead, tfoot and tbody,
the border of cells in tbody is not drawn. In addition, the border of the tfoot
part is drawn incorrectly, if the cell in the tfoot spans more than one column.
Reproducible: Always
Steps to Reproduce:
1.Load the following HTML into the browser:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>border problem</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
table.isc-table {
border: 1px solid white;
border-collapse: collapse;
}
td.isc-cell {
border: 1px solid white;
background-color: silver;
}
body {
background-color: silver;
}
</style>
</head>
<body>
<table class="isc-table">
<thead>
<tr>
<td class="isc-cell">Head 1</td>
<td class="isc-cell">Head 2</td>
</tr>
</thead>
<tfoot>
<tr>
<td class="isc-cell" colspan="2">Foot 1 & 2</td>
</tr>
</tfoot>
<tbody style="overflow: auto; height: 5em;">
<tr>
<td class="isc-cell">Foo</td>
<td class="isc-cell">Bar</td>
</tr>
<tr>
<td class="isc-cell">Foo</td>
<td class="isc-cell">Bar</td>
</tr>
<tr>
<td class="isc-cell">Foo</td>
<td class="isc-cell">Bar</td>
</tr>
<tr>
<td class="isc-cell">Foo</td>
<td class="isc-cell">Bar</td>
</tr>
<tr>
<td class="isc-cell">Foo</td>
<td class="isc-cell">Bar</td>
</tr>
</tbody>
</table>
</body>
</html>
2. Observe
3. Wonder :-)
Actual Results:
There is no border drawn around cells in the tbody, except for the left border.
Also, the border in the tfoot area is incorrect, splitting a cell that spans two
columns.
Expected Results:
Each cell drawn with an 1 pixel wide border.
Removing overflow attribute or changing border-collapse to separate corrects the
problem. So it is only if both the border-collapse: collapse and overflow
attributes are present the problem is visible.
Comment 1•22 years ago
|
||
Note bug 159108, which was fixed post-1.5.... please test a current build.
Assignee: general → table
Component: Browser-General → Layout: Tables
Comment 2•22 years ago
|
||
I added a border and background-color to one of cells to highlight the bug.
Comment 3•22 years ago
|
||
Confirming bug, 2003-11-03-05 trunk Linux
Comment 4•22 years ago
|
||
Looks like bug 135236
Comment 5•17 years ago
|
||
They have also the same testcase
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•