Bug 169996 - Wrong container width computation for table with `table-layout: fixed;`
Summary: Wrong container width computation for table with `table-layout: fixed;`
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 10
Hardware: Mac Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-03-22 23:26 PDT by Viktor
Modified: 2022-07-15 11:19 PDT (History)
4 users (show)

See Also:


Attachments
Bug: wrong table width cumputation (729 bytes, text/html)
2017-03-22 23:26 PDT, Viktor
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor 2017-03-22 23:26:58 PDT
Created attachment 305169 [details]
Bug: wrong table width cumputation

I found this problem in Chromium and could reproduce it in actual Safari version.

Steps to reproduce the problem:
Open https://jsfiddle.net/do2Lcvqr/ or attached file.

Or:
1. Create inline-block element with `overflow: auto;`
2. Put a table with `table-layout: fixed;` and `width` inside
3. You can see a scrollbar

What is the expected behavior?
Table is wrapped by container, their borders adjoin each other, no scrollbar shown.

What went wrong?
Chrome doesn't compute width of the outer block correctly and showes a scrollbar.

Did this work before? N/A 

Does this work in other browsers? Yes
Blink — OK
Firefox — OK
IE11, Edge — OK
Comment 1 Brent Fulgham 2022-07-15 11:19:21 PDT
Chrome and Firefox show the same table width and computed table width as Safari, but correctly lack a horizontal scrollbar.
Comment 2 Radar WebKit Bug Importer 2022-07-15 11:19:31 PDT
<rdar://problem/97084613>