Re: [csswg-drafts] [css-tables] Distribution of block size to table sections not interoperable. (#10590)

This was one of the issues - https://issues.chromium.org/issues/40770346

But basically its more complex than what that bug suggests.

There are cases (I don't think we could really determine the logic) which FF will prefer a row-group over a header-group/footer-group.

E.g.
```
<!DOCTYPE html>
<table border=1 style="height: 100px;">
  <thead><th style="height: 0px;">header</th></thead>
  <tbody><td>body</td></tbody>
</table>
```
https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=12917

Basically for distributing the excess table block-size somehow depends on the contents within it. The algorithm we worked out basically just looks at the height on the {header,footer,row}-groups, and re-distributes based on that vs. determining how to distribute based on the contents. It prefers the row groups over the header/footer groups.

The algorithm is (in simple terms).
1. Grow percent groups up to what their percent specifies (there still may be remaining space after this).
2. With the remaining space grow the following in this preference order.
  1. auto row groups.
  2. fixed row groups.
  3. percent row groups.
  4. auto groups.
  5. fixed groups.
  6. percent groups.

(see also: https://github.com/w3c/csswg-drafts/issues/4418 )




-- 
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10590#issuecomment-2237319244 using your GitHub account


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

Received on Thursday, 18 July 2024 18:51:33 UTC