The default bug view has changed. See this FAQ.

Large rowspans stretch tables vertically

UNCONFIRMED
Unassigned

Status

()

Core
Layout: Tables
UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: Matthew Wakeling, Unassigned)

Tracking

({testcase})

Trunk
x86
Linux
testcase
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(1 attachment)

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Iceweasel/3.0.1 (Debian-3.0.1-1)
Build Identifier: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Iceweasel/3.0.1 (Debian-3.0.1-1)

When rendering a table with style border-collapse: separate, cells seem to have a minimum height of the content plus some small amount per rowspan. This becomes a problem when trying to make two columns have slightly differing numbers of rows by using lowest common multiple rowspans, as shown in the first table in the example web page.

I know this is an obscure problem, but it may exhibit itself in undesirable behaviour in other situations. If you set border-collapse to collapse, then the problem goes away.

Reproducible: Always

Steps to Reproduce:
1. Create a table, and set the style border-collapse to separate (the default).
2. Have a row that has a large rowspan, and no other cells forcing the size of the row.
Actual Results:  
The table is very large vertically.

Expected Results:  
The table should be no larger than if the rowspan was one.
(Reporter)

Comment 1

9 years ago
It seems that the amount of vertical space added to the rows is non-linear. Three data points are:

Rowspan = 1, row height = 21 pixels
Rowspan = 20, row height = 36 pixels
Rowspan = 50, row height = 96 pixels
Component: General → Layout: Tables
Product: Firefox → Core
QA Contact: general → layout.tables
Version: unspecified → 1.9.0 Branch

Comment 2

9 years ago
Created attachment 341589 [details]
testcase from url

Updated

9 years ago
Keywords: testcase

Comment 3

9 years ago
this depends both on the cellspacing and the cellpadding. Both of them default to 1px. Setting them explicitly makes the problem more obvious.

Updated

9 years ago
Version: 1.9.0 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.