diff --git a/css-grid-3/Overview.bs b/css-grid-3/Overview.bs index c308f1f3d3d..75a3ca42261 100644 --- a/css-grid-3/Overview.bs +++ b/css-grid-3/Overview.bs @@ -570,6 +570,9 @@ Subgrids results in the subgrid getting [=masonry layout=] in its [=inline axis=]. + A [=subgrid=] that is a [=masonry container=] + can be referred to as a submasonry. +

Track Repetition: the ''repeat()'' notation

@@ -632,9 +635,6 @@ Grid Axis Track Sizing * All items with an [=automatic grid position=] contribute (regardless of whether they are ultimately placed in that track). - ISSUE(10053): Subgrids need special handling in order to avoid excessive performance costs. - -
For example, suppose there are two columns in the [=grid axis=] and that @@ -678,6 +678,20 @@ Grid Axis Track Sizing or all items are the same size (or matching multiples of that size, in the case of spanning items). +

+Subgrid Item Contributions

+ + When sizing the tracks of either a regular [=grid container=] or a [=masonry container=], + a [=submasonry=] has special handling of items that have an [=automatic grid position=]: + * Any such item is placed into every possible grid track + that could be spanned by the [=submasonry=]. + (If the submasonry has a [=definite grid position=], thus only the spanned tracks; + if it has an [=automatic grid position=], then all tracks in the parent grid.) + * Any such item receives the largest margin/border/padding contribution + of each edge at which it could hypothetically be placed. + If the item spans the entire subgrid, it receives both. + (See CSS Grid Layout §9.) +

Optimized Track Sizing

@@ -691,15 +705,13 @@ Optimized Track Sizing Separate all the [=masonry items=] into item groups, according to the following properties: * the span of the item - * the placement of the item, i.e. whether it an [=automatic grid position=], or a [=definite grid position=]-- - and if so, what that definite position is + * the placement of the item, + i.e. which tracks it is allowed to be placed in * the item's [=baseline-sharing group=] Note: For example, an item with span 2 placed in the second track will be in a different group than an item with span 2 that has an [=automatic grid position=]. - ISSUE(10053): Subgrids need special handling in order to avoid excessive performance costs. -
  • For each [=item group=], synthesize a virtual masonry item that has the maximum of every intrinsic size contribution