Re: [csswg-drafts] [css-images-4][css-grid] Allow transitions between different types within `stripes()` (#8622)

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>
&lt;fantasai> -> https://github.com/w3c/csswg-drafts/issues/8622#issuecomment-1758136484<br>
&lt;fantasai> TabAtkins: Currently, in stripes() you can write widths as length, percentage, or flex<br>
&lt;fantasai> ... we didn't have interpolation behavior for between flex and lengths<br>
&lt;fantasai> ... but in this context, the flex definition is very straightforward and can be expressed in terms of percentages and lengths<br>
&lt;fantasai> ... so my proposal was that each flex in a stripes function will compute to a particular expression<br>
&lt;fantasai> ... which makes it into a &lt;length-percentage><br>
&lt;TabAtkins> max(0, 100% - sum-of-percents - sum-of-fixed) * flex value / max(1, sum-of-flexes)<br>
&lt;fantasai> ... and then you can transition that with all the other length-percentages just fine<br>
&lt;fantasai> fantasai: Sounds fine<br>
&lt;Rossen_> fantasai: makes sense. Do we store as computed value?<br>
&lt;fantasai> ... or do we compute through to &lt;length-percentage> only when interpolating<br>
&lt;fantasai> TabAtkins: It's best for authors to leave fr's as they are, unless they need to convert for an interpolation<br>
&lt;flackr> +1<br>
&lt;fantasai> +1<br>
&lt;fantasai> s/store as/store fr as/<br>
&lt;fantasai> TabAtkins: [explains the formula]<br>
&lt;fantasai> flackr: I like converting just-in-time<br>
&lt;fantasai> ... we do this with other types when interpolating<br>
&lt;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 &lt;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