[css-tables-3] Cell definiteness rules on 2nd layout incomplete.
Open
@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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.