w3c / w3c/csswg-drafts

[css-tables-3] Cell definiteness rules on 2nd layout incomplete.

Open
#6,380 4 comments 0 reactions 1 assignee View on GitHub

@FremyCompany is already working on this.

Since Jun 16, 2021.

css-tables-3
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

https://drafts.csswg.org/css-tables-3/#table-cell-content-relayout

Specifically consider the following case:

<!DOCTYPE html>
<table style="height: 100%;">
  <td>
    <div style="height: 200%; background: yellow;">A</div>
  </td>
</table>

From the table in "Example 11" the 200% should resolve. However this is only true if the cell has grown is height. The rule that we now have for this definiteness is:

  bool is_definite = 
        cell.Style().BlockSize().IsFixed() ||
        (cell_did_grow && !table.Style().BlockSize().IsAuto());

For "Example 11" the first table-cell always has cell_did_grow as true, but if false percentages shouldn't resolve.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.