- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Tue, 19 Aug 2025 08:55:16 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[css-grid-3][Masonry] Repeat(auto-fill, auto) and % sized items`, and agreed to the following: * `RESOLVED: use intrinsic sizing generally for column count for percentages` <details><summary>The full IRC log of that discussion</summary> <kbabbitt> alisonmaher: with intrinsic auto repeaters it's unclear how % should apply<br> <kbabbitt> ... when determining # of ayto repeats<br> <kbabbitt> ... % normally apply based on track size but we don't have that<br> <kbabbitt> ... one idea weve discussed is using container size<br> <kbabbitt> ... but that can lead to surprises because when you size tracks you resolve % differently than when laying out item<br> <kbabbitt> ... there's one use case brought up which might bepopular with masonry<br> <kbabbitt> ... yusing % size on image<br> <kbabbitt> ... element with aspect ratio, set width to 100% so it fills track<br> <kbabbitt> ... if we resolve on container size we'd get one track<br> <astearns> ack fantasai<br> <kbabbitt> fantasai1: I think the right way to think about this is that count is done as an intrinsic sizing pass<br> <kbabbitt> ... use rules for resolving % when calculating intrinsic size<br> <kbabbitt> ... treat them as resolving against nothing<br> <kbabbitt> alisonmaher: that's another option<br> <kbabbitt> ... question is what if all items have % based size<br> <kbabbitt> fantasai1: I think % with intrinsic size get treated as ayuto? can't remember<br> <kbabbitt> TabAtkins: yes they end up behaving as auto<br> <fantasai1> https://www.w3.org/TR/css-sizing-3/#intrinsic<br> <kbabbitt> alisonmaher: so you get 1 auto size track?><br> <kbabbitt> fantasai1: auto size would use these rules for sizing items<br> <kbabbitt> alisonmaher: summary of that?<br> <kbabbitt> fantasai1: there's all kinds of weird exceptions to how it is, but end result is you would reuse same rules and same code as intrinsic sizing<br> <kbabbitt> ... goal is not to do too much layout here<br> <kbabbitt> ... what's intrinsic size of item? 200px. some rules, just use them<br> <kbabbitt> ... when you do layout after all tracks are sized, then you resolve %<br> <kbabbitt> ... but when you do column count I think it would be better not based on latyout but on intrinsic sizing rules<br> <kbabbitt> TabAtkins: don't have a great opinion on this, don't think there's a good answer<br> <kbabbitt> ... alisonmaher's suggestion in thread is what we discussed<br> <kbabbitt> ... treating % as auto is probably better behavior for purpose of determining column counts<br> <kbabbitt> alisonmaher: seems reasonable<br> <kbabbitt> ... assuming that will produce less weird results than I was seeing<br> <kbabbitt> fantasai1: designed to be resolved with less context<br> <kbabbitt> ... because rules we use before intrinsic size before we have container size<br> <kbabbitt> ... to prevent cyclic stuff<br> <kbabbitt> ... iank can probably tell you all about it<br> <kbabbitt> alisonmaher: sgtm<br> <kbabbitt> astearns: proposed resolution is to use intrinsic size rules when resolving % to determine column count<br> <kbabbitt> fantasai1: use intrinsic sizing generally for column count<br> <kbabbitt> astearns: objections?<br> <kbabbitt> RESOLVED: use intrinsic sizing generally for column count for percentages<br> <kbabbitt> fantasai1: if there are other weird rules we should loop them in so that we're consistent<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12432#issuecomment-3199853571 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 19 August 2025 08:55:17 UTC