Closed Bug 382329 Opened 18 years ago Closed 16 years ago

Borders incorrect for rowspan'ed cells of border-collapsed tables

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 332740

People

(Reporter: dougmacd, Unassigned)

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 Borders are flaky for rowspan'ed cells of border-collapsed tables. The first rowspan'ed cell of the table is OK (as is the first rowspan'ed cell following a non-spanning cell), but subsequent rowspan'ed cells display borders as if they are two cells: one spanning 1 row, and the other spanning the remainder of the rows. This can be seen in the sample HTML. The cell "Spans 1-2" is OK (initial cell) and "Spans 7-8" is OK (follows non-spanning cell). The cells "Spans 3-5", "Spans 9-10", and "Spans 11-14" have cell borders through them. Note that vertically-aligned text is placed properly for the rowspan; only the border is in the wrong place. Reproducible: Always Steps to Reproduce: 1. Render the following HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en-US"> <head> <title>Test</title> <style type="text/css"> table { border-collapse: collapse } tr { border-bottom: 1px solid red } td { padding-left: 1em } </style> </head> <body> <table border="0"> <tr> <td>1 </td> <td rowspan="2">Spans 1-2 </td> </tr> <tr> <td>2 </td> </tr> <tr> <td>3 </td> <td rowspan="3">Spans 3-5 </td> </tr> <tr> <td>4 </td> </tr> <tr> <td>5 </td> </tr> <tr> <td>6 </td> <td> Nospan </td> </tr> <tr> <td>7 </td> <td rowspan="2">Spans 7-8 </td> </tr> <tr> <td>8 </td> </tr> <tr> <td>9 </td> <td rowspan="2">Spans 9-10 </td> </tr> <tr> <td>10</td> </tr> <tr> <td>11</td> <td rowspan="4">Spans 11-14</td> </tr> <tr> <td>12</td> </tr> <tr> <td>13</td> </tr> <tr> <td>14</td> </tr> <tr> <td>13</td> <td> Nospan </td> </tr> </table> </body> </html> Actual Results: A cell border appears through cell "Spans 3-5", "Spans 9-10", and Spans 11-14" as if there were a single blank cell for the initial rows (3, 9, and 11), and the colspan was only the subsequent rows (4-6, 10, 12-14). Expected Results: No cell border should pass through cell "Spans 3-5", "Spans 9-10", or "Spans 11-14" The problem doesn't appear if the table border is set to 1. It also doesn't appear if there's no table row following the initial rowspan'ed cell. In the example, if you removed rows 6-13, the "Spans 3-5" cell is OK.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Attached file test case from reporter (deleted) —
Thanks for reporting.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: