Open Bug 1534260 Opened 6 years ago Updated 3 years ago

td with rowspan seems to expand the height of crossing td

Categories

(Core :: Layout: Tables, enhancement, P3)

65 Branch
x86_64
Windows 10
enhancement

Tracking

()

People

(Reporter: jan.michael.koensgen, Unassigned)

Details

Attachments

(2 files, 1 obsolete file)

Attached file just run the html (obsolete) —

in the following html:
https://jsbin.com/wogelapiju/1/edit?html,output
the <a> tag within the second td of the first tr (red; colspan:3) somehow expands the height of the second td (blue).
Does not seem to be the wanted behaviour … appears only in FF

Component: General → Layout: Tables
Product: Firefox → Core

(In reply to jan.michael.koensgen from comment #0)

the <a> tag within the second td of the first tr (red; colspan:3)

Actually, the <a> tag is actually inside a cell with rowspan = 3, i.e. its cell is full height of the table.

I think what's happening is that this cell is distributing some of its intrinsic height to each of the rows that it spans, including the blue one.

The exact mechanics of this distribution are likely unspecified, since tables are largely unspecified. (So, they behave slightly differently in each browser.)

So, we're probably as correct as anybody else, but this may present a webcompat issue, since we do seem to be the only engine that expands the blue row in this case.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Summary: td with colspan seems to expand the height of crossing td → td with rowspan seems to expand the height of crossing td
Attachment #9049968 - Attachment is obsolete: true
Attachment #9063860 - Attachment description: testcase 2 (somewhat reduced) → testcase 2 (somewhat reduced) (blue area is tall in Firefox, short in Chrome/Edge)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: