Open fantasai opened 3 weeks ago
Applying generally to fragmentation containers is somewhat troublesome. E.g. for grid we calculate the grid once, then fragment based on that. We can expand grid rows (in certain cases, e.g. when not fixed) due to fragmentation, but shrinking is complex (detecting how much to shrink is problematic) which at first glance would be required in this case.
Table has the exact same problem, and flex has similar issues.
Block layout is ok! And we already do this when we fragment across a margin: https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=13014
Thought the properties work differently, in terms of use cases, this feels related to https://www.antenna.co.jp/AHF/help/en/ahf-ext.html#axf.margin-break, which is discussed in https://github.com/w3c/csswg-drafts/issues/3254
cc: @MurakamiShinyu
The CSS Working Group just discussed [css-box-4] Applying `margin-trim` to fragmentation containers
.
Pulling out a comment from https://github.com/w3c/csswg-drafts/issues/3314#issuecomment-439218520
@jensimmons and I discussed this, and we think
margin-trim
applied to a multi-column container should apply to margins at the top/bottom of each column box. We think this would be closer to expected behavior than applying it e.g. only to the top of the first column / bottom of the last column. Agenda+ to discuss.