W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2020

Re: [csswg-drafts] [css-align-3][css-tables] vertical-align in orthogonal table cells (#4033)

From: Aleksandar Totic via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Mar 2020 19:31:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-596737494-1583782275-sysbot+gh@w3.org>
> On an orthogonal cell, it means the cell doesn't participate in baseline alignment across cells in the same row, but it could participate in alignment across cells in the same column.

I think that column baseline alignment for tables should not be supported unless someone demonstrates clear need for it. Implementing it is non-trivial, and has a corner case that cannot be implemented: descendants with percentage block sizes.

Baseline computation for rows algorithm:
1) in measuring phase, each row computes an intrinsic baseline. This baseline is used to compute row's height. Block percentages resolution size is 0.
2) Layout phase requires up to 2 passes. 
3) Layout pass 1 is optional. If baseline aligned TDs have a descendant with percentage block size, an optional baseline resolution layout is needed to compute new baseline. Baseline is recomputed by doing layout where block percentage resolution size is row height.
4) Layout pass 2 is required. TDs are laid out, and their content vertically positioned based on vertical alignment.




-- 
GitHub Notification of comment by atotic
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4033#issuecomment-596737494 using your GitHub account
Received on Monday, 9 March 2020 19:31:18 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:02 UTC