Closed Bug 319180 Opened 20 years ago Closed 18 years ago

overlapping table rows in nested table with percentage row heights

Categories

(Core :: Layout: Tables, defect)

1.8 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: weih, Unassigned)

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.12) Gecko/20050919 Firefox/1.0.7 take a look at the following html in firefox. You'll find a comment about the height="25px", which should be completly avoidable, if it worked like I expected it to work. But you can see some weird behaviour if you enter a smaller height. As soon as it falls below a certain amount (depending on the view-size of the text), the line disapperas ( = the displayed row-height is 0). <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" style="height:100%;width:100%"> <head> <style type="text/css"> <!-- tr.con_spacer { height: 50%; } td.con_spacer { width: 50%; max-width: 50%; min-width: 50%; } td.con_vline { background-color: #000000; padding-left: 1px; } td.con_hline { background-color: #000000; max-width: 50%; min-width: 50%; max-height: 1px; min-height: 1px; } .Entity { border-style: solid; border-width: 5px; border-color: #FFFFFF; background-color: #FFA542; padding: 10px; } --> </style> </head> <body> <table cellpadding=0 cellspacing=0 width='100%'> <tr align='center'> <td class="Entity">B. Brecht</td> <td width='1*'><!--empty--><img width='1px' height='1px' /></td> </tr> <tr height="100%"> <td><!-- Verbindungen --> <table cellpadding=0 cellspacing=0 height="100%"> <!-- FIRST ROW --> <tr class='con_spacer'> <td class='con_spacer' /> <td class='con_vline' /> <td class='con_spacer' /> </tr> <!-- SECOND ROW --> <tr class='con_line'> <td class='con_spacer' height="1px" /> <td class='con_vline' /> <td class='con_hline' /> </tr> <!-- THIRD, BROKEN ROW --> <tr class='con_spacer'> <!-- remove the height-attribute or set it smaller than 24 to see the bug --> <td class='con_spacer' height="25px"></td> <td class='con_vline' /> <td class='con_spacer' /> </tr> </table> <td class="Entity">Stanley Kubrick</td> </tr> <tr align='center'> <td class="Entity">Simone de Beauvoir</td> <td width='1*'><!--empty--><img width='1px' height='1px' /></td> </tr> </table> </body> </html> Reproducible: Always Steps to Reproduce: 1. run html above 2. force linewrap by narrowing you window and/or increasing fint-size 3. Actual Results: The line down to "Simone de Beauvoir" dissappears Expected Results: The line should NOT dissappear but size to the new height of the cell. I have no workaround for that. Any ideas?
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5 Confirming, I see this on Linux as well. Although this is not clearly visible in the testcase, the problem is that the first and third table row overlap each other if the height attribute is missing (or too small).
Status: UNCONFIRMED → NEW
Component: General → Layout: Tables
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → layout.tables
Hardware: PC → All
Summary: height-attribute of <td> ignored in second or more table rows → overlapping table rows in nested table with percentage row heights
Version: unspecified → 1.8 Branch
Attached file minimal testcase —
This is a (somewhat) minimal testcase where the overlapping is clearly visible. I changed the row heights of the first and third rows in the nested table from 50% to 60% to make the effect more noticable (and yes, I know that 60% + 60% is more than 100%).
WFM with Firefox trunk on Mac. I don't see any overlapping when I load the minimal testcase.
me too
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: