Skip to content

Commit 16a494b

Browse files
mstenshofantasai
authored andcommitted
Remove flex and grid from margin-trim, as resolved in #13731
1 parent 3bee580 commit 16a494b

1 file changed

Lines changed: 7 additions & 46 deletions

File tree

css-box-4/Overview.bs

Lines changed: 7 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -375,12 +375,12 @@ Margins at Container Edges: the 'margin-trim' property {#margin-trim}
375375

376376
<pre class="propdef">
377377
Name: margin-trim
378-
Value: none | [ block || inline ] | [ block-start || inline-start || block-end || inline-end ]
378+
Value: none | block | [ block-start || block-end ]
379379
Initial: none
380-
Applies to: [=block containers=], [=multi-column containers=], [=flex containers=], [=grid containers=]
380+
Applies to: [=block containers=], [=multi-column containers=]
381381
Inherited: no
382382
Percentages: N/A
383-
Computed value: a set of zero to four keywords indicating which sides to trim
383+
Computed value: a set of zero to two keywords indicating which sides to trim
384384
Animation type: discrete
385385
</pre>
386386

@@ -410,29 +410,16 @@ Margins at Container Edges: the 'margin-trim' property {#margin-trim}
410410
It also truncates any descendant margins collapsed with such a margin
411411
(but not its own, its siblings’, or its ancestors’).
412412

413-
<dt><dfn>inline-start</dfn>
414-
<dt><dfn>inline-end</dfn>
415-
For [=in-flow=] boxes contained by this box,
416-
margins adjacent to the box’s specified edges
417-
are truncated to zero.
418-
(However, these values do not apply to [=block containers=])
419-
420413
<dt><dfn>block</dfn>
421414
<dd>
422415
Computes to ''block-start block-end''.
423-
424-
<dt><dfn>inline</dfn>
425-
<dd>
426-
Computes to ''inline-start inline-end''.
427416
</dl>
428417

429418
Note: Following the shortest-serialization principle,
430-
[=computed values=] equivalent to ''margin-trim/block'' or ''margin-trim/inline''
431-
will serialize as those keywords.
419+
[=computed values=] equivalent to ''margin-trim/block''
420+
will serialize as that keyword.
432421

433-
Adjacency is not sensitive to space governed by box alignment [[!CSS-ALIGN-3]],
434-
and ignores collapsed boxes (see [[css-flexbox-1#visibility-collapse]])
435-
and tracks ([[css-grid-1#auto-repeat]]).
422+
Adjacency is not sensitive to space governed by box alignment [[!CSS-ALIGN-3]].
436423

437424
Note: See also the 'margin-break' property,
438425
which applies to the box’s own margins
@@ -460,8 +447,7 @@ Trimming Block Container Content</h4>
460447
<li>Any margin collapsed with these margins.
461448
</ul>
462449

463-
It has no effect on the [=inline-axis=] margins of [=block-level=] descendants,
464-
nor on any margins of [=inline-level=] descendants.
450+
It has no effect on any margins of [=inline-level=] descendants.
465451
<!--
466452

467453
It also affects floats
@@ -491,31 +477,6 @@ Trimming Block Container Content</h4>
491477

492478
-->
493479

494-
<h4 id="margin-trim-flex">
495-
Trimming Flex Container Content</h4>
496-
497-
For [=flex containers=] specifically,
498-
'margin-trim' discards
499-
<ul>
500-
<li>the corresponding margin of each [=flex item=] on the closest [=flex line=]
501-
when trimming an edge parallel to the [=main axis=]
502-
<li>the corresponding margin of the first/last [=flex item=] on each [=flex line=]
503-
when trimming an edge parallel to the [=cross axis=]
504-
</ul>
505-
506-
This process ignores any [=collapsed flex items=].
507-
508-
<h4 id="margin-trim-grid">
509-
Trimming Grid Container Content</h4>
510-
511-
For [=grid containers=] specifically,
512-
'margin-trim' discards
513-
the corresponding margin of each [=grid item=]
514-
in the [=grid track=] adjacent to the relevant [=box edge=].
515-
516-
This process ignores any [=collapsed grid tracks=].
517-
It does not otherwise ignore any empty [=grid tracks=].
518-
519480
Padding {#paddings}
520481
=======
521482

0 commit comments

Comments
 (0)