Open
Bug 926076
Opened 11 years ago
Updated 2 years ago
Table cells: Incorrect width when all cells in column have the same colspan and absolute width
Categories
(Core :: Layout: Tables, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: martinez.novo+bugzilla, Unassigned)
Details
Attachments
(1 file)
3.41 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 2013091200
Steps to reproduce:
Have a table with 3 columns.
Set width:100% to the table (so it has a "known" width), and use fixed widths (in pixels) to the first 2 cells: 50px. All cells on the 2 first columns have also colspan="2". Don't specify width to third column
See attached file for testcases
Note on real-life usage: I know that it's not optimal (and it's nonsense) to have the same colspan on the entire column, but that was done because it's a programatically generated code that, in some circumstances, the two first columns are split, being 2 cells each. If there's no row that matches the criteria, we end up having this situation. We could detect that situation and not use colspan when this happens, but that was to save us to know in advance whether all rows should have colspan or not.
Actual results:
Fixed widths on table cells aren't respected. They aren't 50px width each as explicitly set
Expected results:
Fixed widths on the cells should have been respected: 50px for each cell in the first 2 columns, except the last one that should fill the width of the table
![]() |
||
Comment 1•11 years ago
|
||
How does this compare to other UAs? As far as I can tell, WebKit and Presto have similar behavior, which suggests that web sites are depending on it. Combined with the lack of a spec for how this should work....
Sorry, I can't tell you about other UAs. I can currently test it with Konqueror, which has the same problem to my surprise.
Honestly, I wouldn't expect that to happen, since fixed width is that, a fixed with. Why would the browser ignore it? I'm really surprised that WebKit fails also on this.
Okay, I'll have to either remove those unneeded colspans or either switch to relative widths (which works, apparently)
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•