Re: [csswg-drafts] [css-box-3] Should margin-trim apply to flex or grid containers? (#3255)

The CSS Working Group just discussed `Should margin-trim apply to flex or grid containers`, and agreed to the following:

* `RESOLVED: margin-trim applies to flex and grid containers also`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Should margin-trim apply to flex or grid containers<br>
&lt;fantasai> github: https://github.com/w3c/csswg-drafts/issues/3255<br>
&lt;fantasai> miriam: margin-trim is designed to remove margins at the edge of the box that are inside the box<br>
&lt;fantasai> miriam: e.g. you have h1 inside section, but don't want margin on the h1 because section already has padding<br>
&lt;fantasai> miriam: or ...<br>
&lt;fantasai> miriam: That happens most often in block dimension, can also happen sometimes in inline dimension<br>
&lt;fantasai> miriam: We were looking through issues around it<br>
&lt;fantasai> miriam: One issue was whether it applies to flex or grid containers<br>
&lt;fantasai> miriam: And idea is to let it apply to both of them<br>
&lt;Rossen_> q?<br>
&lt;fantasai> jensimmons: sgtm<br>
&lt;fantasai> florian: haven't thought deeply, but wfm<br>
&lt;fantasai> Rossen_: Does this have an affect on alignment?<br>
&lt;florian> fantasai: only to the extend that if you trim alignment on one side of the box, you'll have alignment on the rest<br>
&lt;fantasai> Rossen_: So margin-trim is pre-alignment<br>
&lt;florian> fantasai: For instance, things would not longer be centered if you trim on some sides<br>
&lt;florian> s/if you/if you only/<br>
&lt;fantasai> Rossen_: Might check if this is desired effect, but sounds good to me<br>
&lt;fantasai> Rossen_: Anyone else?<br>
&lt;fantasai> Rossen_: Any objections?<br>
&lt;fantasai> RESOLVED: margin-trim applies to flex and grid containers also<br>
&lt;florian> q+<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3255#issuecomment-925074713 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 22 September 2021 16:10:25 UTC