Re: [clreq] 定义网格系统 (#422)

The CSSWG has only seriously discussed the grid of lines (block axis), no so much the grid of of characters in the inline axis.

Our first attempt was https://drafts.csswg.org/css-line-grid-1/. However, this is largely stalled, because setting up the grid this way is a little risky, and if things end up being just a little bit too big, it's quite easy to end up with a lot of double spacing. Another simpler attempt was https://drafts.csswg.org/css-rhythm-1/#line-height-step, but it's even more fragile to that problem.

So instead, more recent discussions have focused not really no setting up a grid forcibly, but on better sizing of lines and blocks so that they naturally line up as a grid:
* https://drafts.csswg.org/css-rhythm-1/#block-height helps size blocks so that they're a multiple of the line height
* https://drafts.csswg.org/css-inline-3/#text-edges and https://drafts.csswg.org/css-inline-3/#inline-height helps lines have a more predictable size (note that the spec is not up to date, and that we have resolutions that have not been applied yet: https://github.com/w3c/csswg-drafts/issues/8829, https://github.com/w3c/csswg-drafts/issues/5426, maybe more)

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/clreq/issues/422#issuecomment-2151594923 using your GitHub account


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

Received on Thursday, 6 June 2024 07:32:00 UTC