-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-images] stripes()
interpolation makes no sense
#8163
Comments
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 And Sebastian |
But transitions work on computed values, and #8140 made percentages compute as-is and clarified that Then, if |
stripes()
interpolation makes no sense
I've made the change suggested by @Loirooriol now. It still restricts interpolation to the same type per interpolation pair. This might be too restrictive as outlined by me earlier, though at least it fixes the current definition. I'll create a separate issue to discuss lifting this restriction once the patch is merged. Sebastian |
https://drafts.csswg.org/css-images-4/#interpolating-1d-images
How do you interpolate from
stripes(#000 10px, #111 20px)
tostripes(#222 10fr, #333 20fr)
?This is invalid, right?
stripes(#111 calc(5px + 5fr), #222 calc(10px + 10fr))
I think that restriction 2 should be changed. Instead of checking that each
<1d-image>
does not mix different types, it should check that each pair of interpolated thicknesses does not mix different types.The text was updated successfully, but these errors were encountered: