Skip to content

Commit 52b59ac

Browse files
committed
[css-box-4] Remove effect of margin-trim on floats. w3c#8547
1 parent 647eac8 commit 52b59ac

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

css-box-4/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ Margins at Container Edges: the 'margin-trim' property {#margin-trim}
387387
<dt><dfn>inline-end</dfn>
388388
<dt><dfn>block-end</dfn>
389389
<dd>
390-
For in-flow boxes and floats contained by this box,
390+
For in-flow boxes contained by this box,
391391
margins adjacent to the box’s specified edges
392392
are truncated to zero.
393393
It also truncates any descendant margins collapsed with such a margin
@@ -419,6 +419,10 @@ Margins at Container Edges: the 'margin-trim' property {#margin-trim}
419419
if the box establishes a <a>fragmentation context</a>.
420420
See also <a href="https://github.com/w3c/csswg-drafts/issues/3314">Issue 3314</a>.
421421

422+
Note: This property has no effect on the margins of floats
423+
when specified on a [=block container=];
424+
a future level of this module may introduce specific controls for floats.
425+
422426
<h4 id="margin-trim-block">
423427
Trimming Block Container Content</h4>
424428

@@ -434,6 +438,8 @@ Trimming Block Container Content</h4>
434438

435439
ISSUE(6922): Define effect on inlines (if any) and in inline axis (if any).
436440

441+
<!--
442+
437443
It also affects floats
438444
for which the [=block container=] is a [=containing block=] by:
439445
<ul>
@@ -459,6 +465,8 @@ Trimming Block Container Content</h4>
459465

460466
ISSUE(3256): Floats definition needs more work.
461467

468+
-->
469+
462470
<h4 id="margin-trim-flex">
463471
Trimming Flex Container Content</h4>
464472

@@ -595,6 +603,10 @@ Recent Changes {#changes}
595603
==============
596604

597605
Changes since the previous Working Draft include:
606+
* Removing the effect of 'margin-trim' on floats,
607+
because there are use cases for both trimming and not trimming their margins,
608+
and it is complicated to imlement.
609+
(<a href="https://github.com/w3c/csswg-drafts/issues/8547">Issue 8547</a>)
598610
* Clarifying that only descendant margins are trimmed by 'margin-trim'
599611
even if self or sibling margins would have collapsed with the trimmed margin.
600612

0 commit comments

Comments
 (0)