Skip to content

Commit 4bc828a

Browse files
committed
[css-grid-2] Generate separate hypoth items for each edge, so assymmetric mbp is handled correctly. #7465
1 parent f81fcda commit 4bc828a

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

css-grid-2/Overview.bs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,13 +3861,11 @@ Subgrids</h2>
38613861
for each span size
38623862
in the set of items spanning into
38633863
the occupied track closest to that edge of the subgrid.
3864-
This item’s sizes are taken from the sizes of the largest such item
3864+
The hypothetical item’s sizes are taken from the sizes of the largest such item
38653865
of each span size,
38663866
and are additionally inflated by the subgrid’s own margin/border/padding
3867-
at that edge (or both edges,
3868-
if it happens to be the most extreme item on both sides
3869-
and is also the smallest span size).
3870-
Similarly, the hypothetical item’s span is taken
3867+
at that edge.
3868+
Correspondingly, the hypothetical item’s span is taken
38713869
from that same real item’s span,
38723870
and inflated by the number of empty tracks between it
38733871
and the relevant [=subgrid=]’s edge(s).
@@ -3896,14 +3894,6 @@ Subgrids</h2>
38963894
spanning the first two columns;
38973895
and one with the size of <var>a</var> plus 25px,
38983896
spanning the first three columns.
3899-
3900-
If only item <var>a</var> existed,
3901-
which would make it both
3902-
span into the closest occupied columns on both sides
3903-
and be the smallest-spanning item on each side,
3904-
then the hypothetical item it contributes
3905-
would be its size inflated by 50px
3906-
and would span all four columns.
39073897
</div>
39083898

39093899
<li id="subgrid-box-alignment">

0 commit comments

Comments
 (0)