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

> > Though I wonder whether there might be use cases in which authors want to mix different sums of flex values to achieve a certain effect. If we normalize the sums, this isn't possible, but if we don't normalize, both can be achieved.
> 
> The effect is really weird; if they want to do something weird they can do it by hand by adding more intermediate values. I don't think there's even a moderate use-case for the behavior to be done intentionally.

The example you gave earlier, transitioning from `1fr, 4fr` to `400fr, 100fr` is also a weird one. Though I tend to agree that having `200.5fr, 52fr` when halfway through the transition is probably not what authors would normally expect.

I think it's time to discuss this on a call. The proposed resolution is to adopt Tab's suggestions [from this issue](https://github.com/w3c/csswg-drafts/issues/8622#issuecomment-1483386351) and [from #8140](https://github.com/w3c/csswg-drafts/issues/8140#issuecomment-1483470522). They are:

* Eagerly compute flex values to lengths (avoid transitioning between different flex sums)
* If flex sum is < 1, it only covers that portion of free space (remainder is pretended to be filled with transparent stripe; same behavior as in flexbox)

I explicitly excluded the issue around mixing flex and length values in Grid, as it seems to deserve a separate discussion.

Sebastian

-- 
GitHub Notification of comment by SebastianZ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8622#issuecomment-1657273551 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 30 July 2023 21:46:18 UTC