Open Bug 332977 Opened 19 years ago Updated 2 years ago

[BC] table border incorrectly displays after rowspan cell

Categories

(Core :: Layout: Tables, defect)

defect

Tracking

()

People

(Reporter: bugzilla-chris, Unassigned)

References

(Depends on 1 open bug, )

Details

(Keywords: testcase)

Attachments

(3 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5 It seems that in a table with a rowspanned cell with a bottom border that when displaying the bottom border is correctly present on the rowspanned cell but is also incorrectly present on the cell in the next column adjacent to the rwospanned one. In effect the border is carrying on into the next cell when it shouldn't. I have created a bare test case for this and it is repeatable on other computer systems. I also downloaded the daily build of Deer Park (5th april build) and the problem was present on this. I also downloaded the mozilla suite browser and the problem did not occur on that. I have not been able to test on other platforms but I can confirm that it isn't just my computer that is suffering this problem (though they, like me, are running windows XP SP2 so all it tells us is that it isn't to do with my local setup). In creating the error case I was using a "2px solid black" border. I have found no workaround for this problem. Reproducible: Always Steps to Reproduce: 1. Create a table 1. Create a cell in the table that has colspan=2 and a bottom border (1px solid black in my tests). 2. finish the table with two more cells in the second column with no style information at all. 3. View page. This has been shortcutted by the example at http://the.earth.li/~chris/test/fftableborderbug.html Actual Results: The table with teh bottom border style has border as expected. However, the bottom right cell that had no style information also has a bottom border. Expected Results: Only the cell with the explicit styling on it should have a bottom border.
Component: General → Layout: Tables
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → 1.8 Branch
I can reproduce on Mac. Looks a lot like bug 322810.
Keywords: testcase
OS: Windows XP → All
Hardware: PC → All
Summary: table border incorrectly displays after rowspan cell → [BC] table border incorrectly displays after rowspan cell
I noticed also interestingly that my complex case was doing some things I couldn't explain in my brief demo. So I have two more urls that demostrate something I'm pretty sure are related: http://the.earth.li/~chris/test/fftableborderbug-dashed.html This shows the same thing as the first with the broken bottom border on the bottom cell. All i've done is added a 1px border to the bottom of the top cell. http://the.earth.li/~chris/test/fftableborderbug-dashed-working.html This is where it gets weird. The only difference is the width of the border on the top cell but it renders as I expect without the border on the bottom right cell. I assume that it is to do with the border conflict resolution and such things.
Keywords: testcase
Attached file testcase fftableborderbug.html (deleted) —
Attached file testcase fftableborderbug-dashed.html (deleted) —
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Version: 1.8 Branch → Trunk
Depends on: 332740
Assignee: nobody → ywu
I noticed something which sounds like this today. Is the following the same bug? <!DOCTYPE HTML> <html> <head> <style type="text/css"> table { border-collapse: collapse; } th, td { border-style: solid none; } </style> </head> <body> <table> <tbody> <tr> <td>a</td> <th>1</th> <th>2</th> <td rowspan=2>b</td> </tr> <tr> <td>c</td> <th>3</th> <th>4</th> </tr> <tr> <td rowspan=2>d</td> <th>5</th> <th>6</th> <td rowspan=2>Bug: a line is drawn through this</td> </tr> <tr> <th>7</th> <th>8</th> </tr> <tr> <td>e</td> <th>9</th> <th>10</th> <td>f</td> </tr> </tbody> </table> </body> </html>
(In reply to Bart Nagel from comment #8) > I noticed something which sounds like this today. Is the following the same > bug? > > <!DOCTYPE HTML> > <html> > <head> > <style type="text/css"> > table { > border-collapse: collapse; > } > th, td { > border-style: solid none; > } > </style> > </head> > <body> > <table> > <tbody> > <tr> > <td>a</td> > <th>1</th> > <th>2</th> > <td rowspan=2>b</td> > </tr> > <tr> > <td>c</td> > <th>3</th> > <th>4</th> > </tr> > <tr> > <td rowspan=2>d</td> > <th>5</th> > <th>6</th> > <td rowspan=2>Bug: a line is drawn through this</td> > </tr> > <tr> > <th>7</th> > <th>8</th> > </tr> > <tr> > <td>e</td> > <th>9</th> > <th>10</th> > <td>f</td> > </tr> > </tbody> > </table> > </body> > </html> The testcase you posted should be fixed by Bug 1421887. For the bug here, it's more like the issues of the bottome border. It does look similar because of the rowspan applied but in fact, they are different logic in the code.
(In reply to Ya-Chieh Wu from comment #9) > The testcase you posted should be fixed by Bug 1421887. Should be Bug 1405929.
I am guessing that this bug has something to do with the code that we somehow treat a cell as a starting cell(new row)[1] when it's IStart side cell has rowspan. Thus, we can't get the "right" |lastBEndBorder| that we want. [1] https://searchfox.org/mozilla-central/rev/652fbd6270de0d3ec424d2b88f8375ff546f949f/layout/tables/nsTableFrame.cpp#6063
sorry that I am inactive so I could not work on this anymore.
Assignee: ywu → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: