Skip to content

[css-tables] correct content measurement based on test findings #1025

@gregwhitworth

Description

@gregwhitworth

While trying to verify the content measurement we found that the spec text is not correct and needs to be re-written for colgroup widths.

  • the outer min-content width of the column group, if any
  • the outer min-content width of the column, if any
  • the outer min-content width of each cell in the column whose column-span is 1 (or just the one in the first row in fixed mode) or 0 if there is none

For example in this test based on the above spec text both columns should result in 51px and this is not what any browser does.

<table cellspacing="0" cellpadding="0">
    <colgroup style="width: 51px;">
        <col style="width: 20px;"></col>
        <col style="width: auto;"></col>
    </colgroup>
    <tr>
        <td style="width: 10px;"></td>
        <td id="four" style="width: 20px;"></td>
    </tr>
</table>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions