Closed
Bug 67176
Opened 24 years ago
Closed 24 years ago
[RFE] Mozilla should not ignore border-collapse
Categories
(Core :: Layout, enhancement)
Tracking
()
People
(Reporter: luolong, Assigned: karnaze)
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; m18) Gecko/20010126
BuildID: 2001012604
Mozilla ignores border-collapse if table has cells with overlapping rowspan and
colspan.
Reproducible: Always
Steps to Reproduce:
1: create html with a table with overlapping cells (such as in the sample HTML
code below)
2: Open it in Mozilla browser
Actual Results: Mozilla displays something like that:
+------+------+------+------+
| r1c1 | r1c2 | | r1c4 |
+------+------+-r1c3-+------+
| row 2 | | |
+-------------+------+------+
| r3c1 | r3c2 | r3c3 | r3c4 |
+------+------+------+------+
(notice the borders that are drawn around both spanning cells)
Expected Results: Layout should be something like that:
+------+------+------+------+
| r1c1 | r1c2 | | r1c4 |
+------+------+ r1c3 +------+
| row 2 |
+-------------+------+------+
| r3c1 | r3c2 | r3c3 | r3c4 |
+------+------+------+------+
(borders around spanning cells have 'collapsed')
sample HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title>Table Test</title></head>
<body>
<table border=1 cellspacing="0" style="border-collapse: collapse;">
<tr>
<td>r1c1</td><td>r1c2</td>
<td rowspan="2">*r1c3*</td>
<td>r1c4</td>
</tr>
<tr><td colspan="4">row 2</td></tr>
<tr>
<td>r3c1</td>
<td>r3c2</td>
<td>r3c3</td>
<td>r3c4</td>
</tr>
</table>
</body>
</html>
Comment 2•24 years ago
|
||
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.6.1 (Cells that span
several rows or columns) explicitly says:
"Defining overlapping cells is an error. User agents may vary in how they handle
this error (e.g., rendering may vary)."
So not only is your example HTML is invalid, the spec explicitly says that
browsers can handle it any way they want....
You're right.
Nevertheless I think that ie behavior in this scenario is more logical.
Perhaps it's good idea to mark it as a feature request then?
Note that without border-collapse both are doing the same thing...
Severity: normal → enhancement
Comment 4•24 years ago
|
||
Making this an enhancement request. Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Mozilla ignores border-collapse if table has cells with overlapping rowspan and colspan → [RFE] Mozilla should not ignore border-collapse
This bug covers exactly the content of bug 41262
*** This bug has been marked as a duplicate of 41262 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•