[csswg-drafts] [css-tables-3] Cell definiteness rules on 2nd layout incomplete. (#6380)

bfgeek has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-tables-3] Cell definiteness rules on 2nd layout incomplete. ==
https://drafts.csswg.org/css-tables-3/#table-cell-content-relayout

Specifically consider the following case:
```html
<!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:

```cpp
  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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6380 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 14 June 2021 22:19:16 UTC