New issue
Advanced search Search tips

Issue 734569 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

HTML-Tables: Wrong column width in tables with auto-layout + colspan + pre

Reported by juergen....@gmail.com, Jun 19 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

Steps to reproduce the problem:
1. Create HTML page with table: 2 rows, 2 columns
2. CSS width of col1=0px, col2=100%
3. Text in row1, cell1: e.g. "T", cell2: e.g. "Some Text"
4. Second rows cell with colspan=2, white-space:pre and a long text (e.g. 160 letters)

What is the expected behavior?
Width of first column should fit the content "T".

What went wrong?
Width of first column is way to large.

Did this work before? N/A 

Chrome version: 58.0.3029.110  Channel: n/a
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

Replace white-space:pre with word-break:break-all and the column width is correct.
 
Table.htm
866 bytes View Download
Just to be clear: the replacement pre->break-all is just for info, NOT a fix. I need the text to be pre-formatted (ALL white-spaces, line-breaks).
When defining col1=1% and col2=99% it layouts just fine.
The column is still to large. There is space left to the "T". The width is 15px, with 0px and break-all it's 10px. That's 5px difference.
I use nested tables with about 10 columns. Here this difference matters. 
Correction: The space is right of the "T".
Ok, you're right dude. So that's possibly because the 1% width is wider than the width of the 'T', so just try this: col1=0.1% and col2=99.9%
Sounds good. Thanks! 
But: Works in Chrome and in Firefox. Now in Internet Explorer the column is rendered to large.
Seems IE is not aware about less than 1% in width.

Comment 8 by bokan@chromium.org, Jun 22 2017

Components: -Blink Blink>Layout

Comment 9 by e...@chromium.org, Jun 26 2017

Cc: dgro...@chromium.org
Components: -Blink>Layout Blink>Layout>Table
Status: Available (was: Unconfirmed)
Project Member

Comment 10 by sheriffbot@chromium.org, Jun 27 2018

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 11 by e...@chromium.org, Jun 28 2018

Status: Available (was: Untriaged)

Comment 12 by e...@chromium.org, Jun 28 2018

Labels: -Pri-2 Pri-3

Sign in to add a comment