W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2019

Re: [csswg-drafts] [css-tables-3] Tall cell height redistribution algorithm (#4418)

From: François REMY via GitHub <sysbot+gh@w3.org>
Date: Wed, 16 Oct 2019 16:50:28 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-542793154-1571244627-sysbot+gh@w3.org>
@atotic All good questions. Here is how I thought about things:

- Step 1: all rows have their minimum size
- Step 2: compute the minimum height of every row group by summing them
- Step 3: compute the size of each row, resolving percentages based on the previous estimate.
- Step 4: compute the sum of all row heights, reduced by their minimum height of step 1. This is the space requested for distribution. It could be higher than the height available to distribute.
- Step 5: find alpha such that alpha = requested-to-be-distributed-height / available-to-distribute-height; the final height of each row will be minimum + alpha * requested increase.
- Step 6: if alpha is an undefined number (dividing by 0) then increase all rows proportionally to their current height : final height = beta * minimum height (where beta > 1)

How does that sound to you?

GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4418#issuecomment-542793154 using your GitHub account
Received on Wednesday, 16 October 2019 16:50:30 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:54 UTC