Re: [csswg-drafts] [css-box-4] Switch margin-trim to boolean indicating sides rather than types of boxes to trim (#6643)

The CSS Working Group just discussed `Switch margin-trim to boolean indicating sides rather than types of boxes`, and agreed to the following:

* `RESOLVED: margin-trim determines which sides to apply to as described in #6643`

<details><summary>The full IRC log of that discussion</summary>
&lt;fantasai> Topic: Switch margin-trim to boolean indicating sides rather than types of boxes<br>
&lt;fantasai> github: https://www.software.hixie.ch/utilities/js/live-dom-viewer/?saved=9646<br>
&lt;fantasai> miriam: This one might be tied to previous<br>
&lt;fantasai> miriam: If there's a reasonable way to apply this to everything without being specific<br>
&lt;astearns> github: https://github.com/w3c/csswg-drafts/issues/6643<br>
&lt;fantasai> miriam: we can make margin-trim to make boolean on/off and indicate the relevant axes<br>
&lt;fantasai> miriam: as values of the property<br>
&lt;fantasai> miriam: e.g. margin-trim: block;<br>
&lt;fantasai> miriam: most common values are probably all/block/block-start/block-end but others might be wanted<br>
&lt;fantasai> miriam: basically property would say which sides need trimming<br>
&lt;fantasai> Rossen_: On the face of it, I think it makes sense<br>
&lt;emeyer> I can think of many situations where I’d want to trim inline margins on floats.<br>
&lt;fantasai> emeyer, note the property is set on the container not on the floats ...<br>
&lt;fantasai> Rossen_: but does go back to what it applies to<br>
&lt;fantasai> Rossen_: I don't know if your assumption here about floats is that strong<br>
&lt;fantasai> Rossen_: Even if doesn't apply to floats, wouldn't you expect it to apply the same way<br>
&lt;fantasai> florian: Question is if you have choice of whether to apply to floats or not, then there's a bit of an explosion<br>
&lt;florian> fantasai: we could make it into multiple properties<br>
&lt;fantasai> Rossen_: ..<br>
&lt;florian> fantasai: but the 3 way choice is the current syntax<br>
&lt;fantasai> miriam: If we had only none | all<br>
&lt;fantasai> miriam: then could use this proposal<br>
&lt;fantasai> miriam: but if need to control what to trim, then need maybe another property<br>
&lt;fantasai> miriam: but if specifying which sides to trim, and then come back to whether we need control over what to triM?<br>
&lt;fantasai> Rossen_: Thoughts?<br>
&lt;fantasai> miriam: Should we take the proposal on control over sides, and then come back next week with question of whether to apply to floats or not?<br>
&lt;fantasai> RESOLVED: margin-trim determines which sides to apply to as described in #6643<br>
</details>


-- 
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6643#issuecomment-925102030 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:45:26 UTC