w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.48k stars 659 forks source link

[css-line-grid-1] Clarifying / improving "Interacting with other alignments" #1856

Open frivoal opened 7 years ago

frivoal commented 7 years ago

https://drafts.csswg.org/css-line-grid/#alignment-interactions

This section proposes a solution to the problem that snapping lines to the grid may change the size of the element whose lines are being snapped, but changing its size may (depending on the layout mode and various parameters) change it's position, which affects where the lines should snap, which affects the size, causing a loop if we don't break out.

The solution outlined does seem like a step in the right direction, but I am not sure it is complete or well defined. I believe I understand what it does as long as all we're talking about are block level boxes that are also block containers,with no non-block formatting context in between, but if we step out of that, I am not sure I understand the proposal (and therefore cannot either agree or disagree). A few points to that effect:

All in all, maybe I am just reading it wrong (but if so, I'd appreciate editorial clarifications), but it seems to me that the section doesn't address the problem in the general case.

frivoal commented 7 years ago

To make things concrete, here's an intentionally contrived example:

https://florian.rivoal.net/csswg/line-grid/line-grid-torture.html

Do the steps in https://drafts.csswg.org/css-line-grid/#alignment-interactions say what to do?