- From: CSS Meeting Bot via GitHub <noreply@w3.org>
- Date: Wed, 18 Jun 2025 16:26:25 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-sizing] Intrinsic contribution of `fit-content()` with cyclic percentages``, and agreed to the following: * `RESOLVED: accept oriol's proposal` <details><summary>The full IRC log of that discussion</summary> <kbabbitt> oriol: fit-content() function isn't super clear what effect should be for intrinsic contributions<br> <kbabbitt> ... for example if you have width property set to a ? amount<br> <kbabbitt> ... but then max-width is set to fit-content() with percentage<br> <kbabbitt> ... when you are computing intrinsics, max property contains percentage, treat entire rexpression as initial value<br> <kbabbitt> ... seems strange because you know fit-content will be ? minimum and maximum\<br> <kbabbitt> ... fit-content will clamp provided value between min and maximum<br> <kbabbitt> ... when you use this function as a max size, it's strange to me that we will treat the entire thing as null<br> <kbabbitt> .. because ofpercentage<br> <dbaron> s/as null/as none/<br> <kbabbitt> ... because this can allow much greater sizes even though we clamp to something smaller<br> <kbabbitt> ... my proposal can be summarized as: what we do for length percentage, then we do the same for just min-content arguments<br> <kbabbitt> ... but then clamp between min-content and max-content<br> <iank_> +1 this makes sense to me.<br> <kbabbitt> ... if entire length-percentage ?? to zero, then will be treated as fit-content of 0<br> <kbabbitt> ... [reads remainder of proposal in https://github.com/w3c/csswg-drafts/issues/11805#issue-2889260003]<br> <dbaron> Yeah, I think this makes sense to me too.<br> <kbabbitt> ... maybe one tricky case<br> <fantasai> Finished reading the proposal, +1 from me.<br> <kbabbitt> ... for example if length-percentage with cyclic percentages could be treated as automatic minimum size...<br> <kbabbitt> ... then you cannot express auto min size with a keyword<br> <kbabbitt> ... or l-p in fit-content function<br> <kbabbitt> ... so treat entire thing as min-content<br> <kbabbitt> ... basically list of cases in the issue<br> <kbabbitt> ... not sure if people have other opinions<br> <kbabbitt> ... instead prefer affecting entire expression<br> <kbabbitt> ... e.g. treat entire function as initial value instead<br> <dbaron> One tiny detail: is it ever possible for min-content > max-content. If it is (although I hope it isn't), then fit-content(infinity) isn't necessarily equal to max-content.<br> <kbabbitt> iank_: I think we have enough people in IRC agreeing<br> <Rossen6> q?<br> <kbabbitt> Rossen6: any feedback?<br> <kbabbitt> dbaron: don't think we need to discuss that here, whoever edits can think about it<br> <kbabbitt> Rossen6: only seeing agreement, any objections?<br> <kbabbitt> RESOLVED: accept oriol's proposal<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11805#issuecomment-2984920419 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 18 June 2025 16:26:26 UTC