Re: [csswg-drafts] [css-images] <1d-image> interpolation makes no sense (#8163)

I believe restriction 2 could actually be lifted. Calculating the transitions between them should be straight forward.

Taking your first example and applying it to a total width of 60px, the transition would be to one from `stripes(#000 10px, #111 20px, transparent 30px)` to `stripes(#222 20px, #333 40px, transparent 0px)`. For 120px total width it would be from ``stripes(#000 10px, #111 20px, transparent 90px)` to `stripes(#222 40px, #333 80px, transparent 0px)`. 

And `stripes(#111 calc(5px + 5fr), #222 calc(10px + 10fr))` might not be invalid. With a total length of 60px again, it would be equivalent to `stripes(#111 calc(5px + 15px), #222 calc(10px + 30px))`. And assuming a total width of 120px, it would be the same as `stripes(#111 calc(5px + 35px), #222 calc(10px + 70px))`.

Sebastian

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


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

Received on Thursday, 1 December 2022 23:27:34 UTC