Skip to content

[css-tables] excess width distribution in fixed layout mode #484

Open
@gregwhitworth

Description

@gregwhitworth

Compat Issues: Potentially

Description:
Chrome and Webkit distribute excess width differently when the table-layout is fixed. This is understandable to an extent given that width distribution works differently in fixed layout, but it would be good to be consistent where possible.

Proposed Option:
Have fixed excess width distribution follow that of table-layout: auto:
https://drafts.csswg.org/css-tables-3/#distributing-width-to-columns

  • auto columns are expanded first
  • then px columns if there is no auto column
  • then % if there is no px column either.

CSS 2.1 Option:
Undefined in CSS 2.1.

Other options:
Use a different width distribution for table-layout:fixed, which would work like Chrome and Webkit and consider percentages columns prime candidate for distribution and not pixel ones like usually.

Testcases:
http://codepen.io/FremyCompany/pen/yeKRGW?editors=1100

Browsers Passing Test:
Non webkit-based browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions