-
Notifications
You must be signed in to change notification settings - Fork 667
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] Avoid 0/0 division in stripes() #9666
Comments
That's actually covered by the last sentence. So, in case of the sum being Having said that, I guess we can just remove that definition and instead rely on the definition of That has a more detailed definition for sums less than one distributing the leftover space according to the requested portions. Sebastian |
Let's say the total width is 100px, and there are two stripes, |
The logic behind that is meant to be the same everywhere where From the general definition:
So Though the definition you quoted above came from @tabatkins. So maybe he can decide whether to remove it or adjust it to align it with the general definition. Sebastian |
https://drafts.csswg.org/css-images-4/#stripes
If all the
<flex>
values are0fr
, then the fractions will be0/0
.Since the amount being distributed is multiplied by 0, then it seems fine to just not distribute anything.
The text was updated successfully, but these errors were encountered: