Re: [csswg-drafts] [css-images-4] Restriction on `<percentage>` values in `stripes()` (#9551)

I don't think this needs to be consistent with `<alpha-value>`, which is a pure percentage, here percentages resolve against a length and have type `«[ "length" → 1 ]»` so it's an entirely different situation.

So I would just rely on

> The total width is defined by the context in which the [stripes()](https://drafts.csswg.org/css-images-4/#funcdef-stripes) function is used. If the sum of the stripes is smaller than the total width, the [paint line](https://drafts.csswg.org/css-images-4/#paint-line) is [transparent black](https://www.w3.org/TR/css-color-4/#transparent-black) for its remaining length, as if a final [transparent](https://www.w3.org/TR/css-color-4/#valdef-color-transparent) argument were given. **If the sum is larger, any stripes or portions beyond the total width are truncated.**

I don't see the need to truncate individual values at all.



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


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

Received on Friday, 3 November 2023 20:55:24 UTC