- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 11 Dec 2024 17:50:24 +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: `overflow-clip-margin: content-box` applies to scrollable boxes`` <details><summary>The full IRC log of that discussion</summary> <TabAtkins> emilio: not super high prio, but been agenda for a while<br> <TabAtkins> emilio: i don't think you can get the behavior of some of the built-in form controls regarding overflow clipping without something like this<br> <TabAtkins> emilio: in particular, textarea clips in the content-box in the inline-axis, input also has something weird<br> <TabAtkins> emilio: it seems useful to allow values that make the clip smaller than the padding box<br> <flackr> q+<br> <TabAtkins> emilio: per spec it only applies to overflow-clip right now, but i think it woudl be useful on scrollable boxes as well. was wondering about feelings on this<br> <astearns> ack fantasai<br> <astearns> ack flackr<br> <TabAtkins> flackr: i had the impression that we previously wanted to allow scrollable content to extend outside the scrolling box<br> <TabAtkins> flackr: a bunch of UI interfaces - you dont' want the scrollbar larger, but you want content behind the header, etc<br> <TabAtkins> emilio: that seems... maybe doable<br> <TabAtkins> emilio: would need to think more about that impl wise<br> <TabAtkins> emilio: at that point you may want to change the scrollbar region more than the scrolling region itself...<br> <TabAtkins> flackr: yeah, mayb<br> <TabAtkins> emilio: but i think the uncontroversial thing would be to allow things inside the padding box<br> <TabAtkins> emilio: would look cool to allow positive values, but not sure how it would look with borders/etc<br> <vmpstr> q+<br> <TabAtkins> emilio: maybe that just works?<br> <TabAtkins> flackr: yeah feels like you'd want it behind the border, in front of background<br> <TabAtkins> (border is already on top of background)<br> <astearns> ack vmpstr<br> <TabAtkins> vmpstr: q about scrolling with a mousewheel or trackpad<br> <TabAtkins> vmpstr: if... if the mouse is in padding area does it scroll the content?<br> <TabAtkins> vmpstr: if the content is outside the scroller, presumably doesn't scroll<br> <TabAtkins> vmpstr: if there's visual information about the content out there, is that meant to be scrolled by the mousewheel?<br> <TabAtkins> emilio: I'd like to avoid discussing positive margin right now because i haven't thought about it, and it does raise more questions<br> <TabAtkins> emilio: i think for inner, right now Firefox bheavior is to scroll when you're in padding box<br> <TabAtkins> emilio: textarea behavior exists now, so we could crib off of that<br> <TabAtkins> emilio: but otherwise yeah, good question<br> <TabAtkins> q+<br> <bramus> TabAtkins: so we are only discussing negative values. does that mean positive ones are clamped to 0 at the moment and in the future we might allow them?<br> <TabAtkins> emilio: yes, most reasonable right now. perhaps in the future we could add a support keyword<br> <bramus> TabAtkins: its the ability to detect future supoort that i am worried about, but i think we have the tools to figure tha tout<br> <fantasai> spec only allows positive values?<br> <fantasai> https://drafts.csswg.org/css-overflow-4/#overflow-clip-margin<br> <TabAtkins> emilio: currently it's already ignored on scorllable, which has same issue if we start doing it<br> <TabAtkins> emilio: but if we need to we can add feature detection as needed<br> <astearns> ack TabAtkins<br> <TabAtkins> vmpstr: so positive values grow; we're only discussing negatives that shrink<br> <TabAtkins> astearns: it's possible we'll run into compat issues if people are over-applying right now?<br> <TabAtkins> emilio: potentially, yes. i think it's unlikely, but i've been wrong before.<br> <bramus> TabAtkins: can always add an opt-in keyword to the property<br> <TabAtkins> emilio: so if people agree, allowing values taht shrink the clipping box for scrollable boxes<br> <TabAtkins> emilio: i was just trying to kill the internal mechanism<br> <TabAtkins> TabAtkins: just to clarify, elika pointed out in IRC that negative values are invalid. we're *actually* just taklinga bout allowing the box keywords to work on scrollable boxes, which can shrink the clip region ot smaller than what it currently is<br> <TabAtkins> emilio: it's probably worth ahving a separate issue for negative values<br> <TabAtkins> emilio: i'll file a separate issue<br> <TabAtkins> astearns: so proposed for this issue is to allow overflow-clip-margin: content-box to apply to scrollable containers<br> <TabAtkins> emilio: preferred is allow use of overflow-clip-margin on scrollers that shrink the clipping box<br> <TabAtkins> emilio: that is currently just the 'content-box' keyword<br> <TabAtkins> emilio: but if we allow negatives, it'll be a more general resolution<br> <TabAtkins> astearns: yeah, but i'd like the shrinking mechanism explored more specifically before we allow it generally here. tighter resolution for now<br> <TabAtkins> emilio: faire<br> <TabAtkins> astearns: objections to allowing content-box value to apply to scrollable containers?<br> <TabAtkins> RESOLVED: `overflow-clip-margin: content-box` applies to scrollable boxes<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-2536695741 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 11 December 2024 17:50:25 UTC