Re: [csswg-drafts] [css-overflow] overflow-clip-margin might want to set different boxes in the block and inline axes. (#7245)

The CSS Working Group just discussed `[css-overflow] overflow-clip-margin might want to set different boxes in the block and inline axes.`, and agreed to the following:

* `RESOLVED: Add overflow-clip-margin-inline, -block, and the full set of properties`

<details><summary>The full IRC log of that discussion</summary>
&lt;dael> Topic: [css-overflow] overflow-clip-margin might want to set different boxes in the block and inline axes.<br>
&lt;dael> github: https://github.com/w3c/csswg-drafts/issues/7245<br>
&lt;dael> Rossen_: Can we discuss this w/o emilio?<br>
&lt;dael> fantasai: Probably. Next issue should wait<br>
&lt;dael> fantasai: On this, proosal we accepted to add overflow-clip-margin property. Takes a value to clip a little outside border edge.<br>
&lt;dael> fantasai: This allows some amount of overflow<br>
&lt;dael> fantasai: Typical margin properties have longhands that allow you to do sizes of box with physical or logical coord.<br>
&lt;dael> fantasai: Also semi-longhands that do both inline or both block sides at the same time<br>
&lt;dael> fantasai: emilio filed this saying might be useful to be able to set overflow-clip-margin  independantly in block and inline axis. That brought up question of do we want full set of longhands or just per axis<br>
&lt;dael> fantasai: If we're going halfway overflow-clip-margin would take 1 value and set all 4. You could do overflow-clip-margin-block and -inline. Later we could add the full longhands if there's need<br>
&lt;Rossen_> q?<br>
&lt;dael> Rossen_: Comments?<br>
&lt;dael> vmpstr: Clarify, if both are set is there a precident of what happens?<br>
&lt;dael> fantasai: overflow-clip-margin is shorthand for overflow-clip-margin-block and -inline<br>
&lt;dael> vmpstr: Got it<br>
&lt;dael> Rossen_: And if you only set....okay...<br>
&lt;dael> Rossen_: Prop is start with the single value and extend to inline and block<br>
&lt;dael> Rossen_: Or do we want to resolve on the full expansion?<br>
&lt;dael> fantasai: That's my question. Just inline and block or explode all the way?<br>
&lt;dael> Rossen_: Would be quite inconsistent to have a shorthand with only 2 values. For consistency prefer if similar to margin<br>
&lt;dael> Rossen_: But that's a point for consistency<br>
&lt;dael> jensimmons: Agree to explode it out so we don't confuse people<br>
&lt;dael> Rossen_: And compat later is easier<br>
&lt;dael> Rossen_: When you have impl that only support 2 and other impl that support all<br>
&lt;dael> Rossen_: Sounds like we want to resolve to expand out the shorthand to support all the inline and block values, both logical and physical?<br>
&lt;dael> fantasai: Yeah, if we want all the sides we do the full set<br>
&lt;dael> Rossen_: Add overflow-clip-margin-inline, -block, and the full set of properties<br>
&lt;khush> q+<br>
&lt;dael> Rossen_: Additional thoughts? Objections?<br>
&lt;Rossen_> ack khush<br>
&lt;dael> khush: Clarifying one thing. Margin shorthand has syntax to spec value for all 4 sides. Resolution is not to make that work, right?<br>
&lt;dael> fantasai: If we're going to the full set that we'll be fully consistent<br>
&lt;dael> khush: Oh. Depending on how many values spec it was saying overflow-clip-margin could have 2 values to specifying content box and margin. If we see 2 is it supposed to be for top or both<br>
&lt;dael> fantasai: So b/c we have 1 or 2 values for each longhand we would have to figure out how to disambiguate shorthand<br>
&lt;dael> khush: Exactly<br>
&lt;dael> fantasai: Other option is pull out the box choice into own longhand so margins are all linked. But then couldn't choose different boxes to offset from. That would solve disambig.<br>
&lt;dael> fantasai: Other possibility is restrict the shorthand so it's only one but it's appled to all for the longhand. If you want to offset differently you have to use the longhand. We do have precedent<br>
&lt;dael> khush: So shorthand wouldn't let you supply both values. f you want that you have to use longhand<br>
&lt;dael> fantasai: Yeah, I think would be one easy way to do.<br>
&lt;dael> fantasai: To allow everything in shorthand we would have to either require box for every keyword or require length for everything or use a separator.<br>
&lt;dael> fantasai: A bunch of ways to handle. Probably should resolve to add all the longhands and then follow-up how to handle the shorthand parsing b/c should discuss more<br>
&lt;dael> khush: We did ship overflow-clip-margin  in chrome which lets you spec both things. But exploring options separate sounds good<br>
&lt;dael> fantasai: I think if you do keyword + length all the options here still allow that<br>
&lt;dael> Rossen_: Prop: Add all the longhands to overflow-clip-margin-inline and follow up with a separate issue for how to handle the shorthand parsing<br>
&lt;dael> Rossen_: Does that sound reasonable?<br>
&lt;dael> khush: sgtm<br>
&lt;dael> Rossen_: Additional comments or objections to add overflow-clip-margin-inline, -block, and the full set of properties<br>
&lt;dael> RESOLVED: Add overflow-clip-margin-inline, -block, and the full set of properties<br>
&lt;dael> Rossen_: khush or fantasai please open separate issue<br>
</details>


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


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

Received on Wednesday, 6 July 2022 23:52:06 UTC