- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Fri, 31 Jan 2025 00:00:26 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-overflow] Should overflow-clip-margin apply to scrollable boxes?`, and agreed to the following: * `RESOLVED: scrollable boxes can combine content-box and a positive margin (clamped to padding box), and content-box and padding box can use negative margins. border-box ignores margin either way.` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> astearns: proposed resolution: new negative sizes to overflow-clip-margin (from 11355) also apply to scrolalble areas<br> <TabAtkins> florian: supprot with a question<br> <TabAtkins> florian: if you ahve content-box with or without negative margins, or padding box + negative margin, yes<br> <TabAtkins> florian: but if you have border-box (expands) and negative margins (reduces), do we take that into acocunt, or do we stop with just border box<br> <TabAtkins> emilio: main implication is that with classic scrollbars...<br> <TabAtkins> emilio: we dont' want to make clipping are larger than the padding box<br> <TabAtkins> emilio: because it's a scorllable box, that's core to the idea<br> <TabAtkins> emilio: so if you set border-box with a negative margin, so it's bigger than the scrollbar and shrinks partially, but in a system with bigger scrollbars it doesn't, so you get clipping in one but not the other...<br> <TabAtkins> florian: i don't think it's a very interesting case, so we could just say that if you set border-box it doesn't apply<br> <TabAtkins> TabAtkins: how do we handle today content-box + positive margin<br> <TabAtkins> florian: think it's unspecified<br> <TabAtkins> TabAtkins: we shoudl specify that it's clamped to padding box, since that seems to be our constraint<br> <oriol> q+<br> <TabAtkins> TabAtkins: so proposal: scrolalble boxes can use padding box and negative value, or content-box + any value (but clamped to padding box). border-box can't be used with negative value, because its relation to padding box is possible varyign between impls<br> <TabAtkins> oriol: i didn't fully udnerstand the reason for not allowing this with border box<br> <TabAtkins> oriol: if we allow content-box to grow to the padding, seems consistent ot allwo border box to shrink<br> <TabAtkins> TabAtkins: issue is that we always clamp scrollable down to padding box.<br> <TabAtkins> TabAtkins: you can grow content box up to that point<br> <TabAtkins> TabAtkins: if you shrink border box, it either does nothing (because it didn't shirnk enough and our clamp goes further) or it does shirnk to below padding box<br> <TabAtkins> TabAtkins: but the concern is, with varying scrollbar widths, whether you hit that point or not can be browser dependent<br> <TabAtkins> TabAtkins: which seems potentially bad for authors<br> <TabAtkins> astearns: no objections to the resolution<br> <TabAtkins> RESOLVED: scrollable boxes can combine content-box and a positive margin (clamped to padding box), and content-box and padding box can use negative margins. border-box ignores margin either way.<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10745#issuecomment-2625972564 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 31 January 2025 00:00:27 UTC