- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Thu, 13 Jun 2024 10:45:43 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-values][css-contain] Can we account for scrollbars on containers when sizing 100cq*? `, and agreed to the following: * `RESOLVED: both container query units and container queries should take into account relevant scrollbar gutters when theyre present ?` <details><summary>The full IRC log of that discussion</summary> <jarhar> miriam: a while back we resolved on viewport units account for scrollbars when overflow is set to scroll or when scrollable gugtters are stable. when we know the scrollbars are there we account for them in the viewport size. this issue is just saying lets take that logic and apply it to container queries as well<br> <fantasai> +1<br> <jarhar> miriam: lets apply that logic to container query units, so when we know there are scrollbars lets ? them into container query units. rune said ? container as well, thats what we would like to do if that seems possible<br> <futhark> q+<br> <bramus> +1<br> <astearns> ack fantasai<br> <astearns> ack futhark<br> <jarhar> futhark: i would like ian to confirm if that doesn't cause any layout problems but i think if we do it in container units it shoulnd't be any more different to do for ? stuff<br> <jarhar> iank_: i tnhink we want to keep ? the same internal mechanism and keep that consistent, well ideally<br> <jarhar> iank_: does that ? rune?<br> <jarhar> futhark: for implementation complexity its simpler to have the same size for ? and queries<br> <bramus> s/does that ? rune?/is that correct, Rune?<br> <jarhar> iank_: i think thats fine as long as were not considering auto. just to confirm this is ? just scrollbars right?<br> <jarhar> miriam: this is only when scrollbar gutters are set to stable or when overflow is set to scroll, so only when we know there are scrollbars, or scrollbar space<br> <lwarlow> q+<br> <jarhar> iank_: yeah that seems fine<br> <astearns> ack lwarlow<br> <jarhar> lwarlow: just to check does this account for if you go over edges in your ?<br> <jarhar> miriam: not sure i understand<br> <astearns> s/go over/got both/<br> <jarhar> lwarlow: if you got scrollbar gutter ? reserve space for one scrollbar but if you ? space youve effectively got two scrollbars<br> <bramus> q+<br> <astearns> ack bramus<br> <jarhar> miriam: if we can account for that we should. if theyre stable thenwe know that space is taken so we should account for it<br> <florian> q+<br> <jarhar> bramus: luke, youre asking if your scrollbar covers stable ? i dont think thats what we want to do ? when theyre stable then ? layout shift, it has equal spacing to the left and right<br> <astearns> https://www.irccloud.com/pastebin/IIgSkI7D/<br> <jarhar> florian: scrollbar gutter has a value thats reserved for ? on both edges, in addition to being stable you can be stable both edges, in that case you should count it twice, otherwise once<br> <jarhar> bramus: if you have scorllbar gutter stable and you abspos something does it ? over something ?<br> <emilio> It should act like a scrollbar<br> <jarhar> lwarlow: i think having position fixed ? it might be a bit tough but other than that if gutters reserved<br> <florian> s/thats reserved for ? on/that reserves space on<br> <emilio> scrollbar-layer should behave like a scrollbar, so we should treat them the same<br> <jarhar> iank_: from the layout perspective, scrollbar ? scrollbar ? a difference then its the same thing , so abspos i think account for the scrollbar and then<br> <futhark> q+<br> <astearns> ack florian<br> <florian> q-<br> <astearns> ack futhark<br> <jarhar> futhark: i wanted to confirm we are separating the direction so if you have overflow scroll in one direction it will only affect the unit of the query in that direction. if you have stable in the block or if you have scrollbar in the ? still not include the scrollbar in the horizontal direction<br> <jarhar> iank_: that was my assumption<br> <jarhar> futhark: yep, just to confirm<br> <jarhar> astearns: i think the proposed resolution is both the container query units should take into account - should take into account relevant scrollbar gutters when theyre ?<br> <bramus> s/theyre ?/theyre present<br> <jarhar> miriam: when theyre stable? i didn't catch the final word<br> <jarhar> astearns: stable, yeah<br> <jarhar> iank_: you could also word is as include scrollbars space unless theyre auto scrollbars or something like that<br> <jarhar> astearns: yeah i was using present as the term ??<br> <jarhar> astearns: have relevant gutters present<br> <jarhar> miriam: makes sense to me<br> <khush> q+<br> <astearns> ack khush<br> <jarhar> khush: is there an issue with the flag does this change existing behavior?<br> <jarhar> iank_: i think we're early enough in the lifecycle of this feature that it wont be an issue ?? we can report that ?? but i suspect it wont<br> <jarhar> astearns: any objections?<br> <emilio> yeah, overflow:scroll is not used _super_ often, so we can probably get away with it<br> <emilio> Most likely if we get away with it for viewport units we can get away for containers :)<br> <astearns> RESOLVED: both container query units and container queries should take into account relevant scrollbar gutters when theyre present ?<br> <jarhar> astearns: did i get that right or do i need to amend it?<br> <jarhar> astearns: anything more on this 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/10043#issuecomment-2165291421 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 June 2024 10:45:44 UTC