[csswg-drafts] [css-images] Avoid 0/0 division in stripes() (#9666)

Loirooriol has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images] Avoid 0/0 division in stripes() ==
https://drafts.csswg.org/css-images-4/#stripes

> A [`<flex>`](https://www.w3.org/TR/css-grid-2/#typedef-flex) is evaluated as a fraction of the total width relative to the total sum of `<flex>` entries in the function, after subtracting the thickness of any non-`<flex>` entries (flooring the subtraction result at zero). If the sum of `<flex>` values is less than `1fr`, the result of the subtraction is multiplied by the sum’s value before being distributed.

If all the `<flex>` values are `0fr`, then the fractions will be `0/0`.

Since the amount being distributed is multiplied by 0, then it seems fine to just not distribute anything.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9666 using your GitHub account


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

Received on Friday, 1 December 2023 16:25:08 UTC