- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 13 Dec 2023 16:23:01 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed ``[css-images-4][css-grid] Allow transitions between different types within `stripes()` ``, and agreed to the following: * `RESOLVED: fr values in stripes() convert to max(0, 100% - sum-of-percents - sum-of-fixed) * flex value / max(1, sum-of-flexes) (a <length-percentage>) when needed for interpolation` <details><summary>The full IRC log of that discussion</summary> <fantasai> -> https://github.com/w3c/csswg-drafts/issues/8622#issuecomment-1758136484<br> <fantasai> TabAtkins: Currently, in stripes() you can write widths as length, percentage, or flex<br> <fantasai> ... we didn't have interpolation behavior for between flex and lengths<br> <fantasai> ... but in this context, the flex definition is very straightforward and can be expressed in terms of percentages and lengths<br> <fantasai> ... so my proposal was that each flex in a stripes function will compute to a particular expression<br> <fantasai> ... which makes it into a <length-percentage><br> <TabAtkins> max(0, 100% - sum-of-percents - sum-of-fixed) * flex value / max(1, sum-of-flexes)<br> <fantasai> ... and then you can transition that with all the other length-percentages just fine<br> <fantasai> fantasai: Sounds fine<br> <Rossen_> fantasai: makes sense. Do we store as computed value?<br> <fantasai> ... or do we compute through to <length-percentage> only when interpolating<br> <fantasai> TabAtkins: It's best for authors to leave fr's as they are, unless they need to convert for an interpolation<br> <flackr> +1<br> <fantasai> +1<br> <fantasai> s/store as/store fr as/<br> <fantasai> TabAtkins: [explains the formula]<br> <fantasai> flackr: I like converting just-in-time<br> <fantasai> ... we do this with other types when interpolating<br> <fantasai> RESOLVED: fr values in stripes() convert to max(0, 100% - sum-of-percents - sum-of-fixed) * flex value / max(1, sum-of-flexes) (a <length-percentage>) when needed for interpolation<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8622#issuecomment-1854253207 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 13 December 2023 16:23:03 UTC