Skip to content

[css-tables-3] max-width on table cells #2802

@fantasai

Description

@fantasai

In #1643 (comment) @davidsgrogan wrote:

table-cells aren't allowed to ever overflow, even if you try to explicitly size them

This isn't the first time I've read this, but there appears to be a simple counterexample. Could you take a moment to explain the apparent contradiction, for my own edification (or possibly for yours)?

<table style="border: 1px solid blue;">
    <td style="max-width: 20px;">Overflow</td>
</table>

https://jsfiddle.net/dgrogan/9uduq99L/5/

I haven't looked into this in detail, so I might be missing something, but results of the test appear to contradict the css-tables-3 spec where it says

The outer max-content width of a table-cell in a constrained column is max(min-width, width, min-content width, min(max-width, width)) adjusted by the cell intrinsic offsets.

so filing this issue for further investigation by the css-tables-3 editors~

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions