[csswg-drafts] [css-values] Clarify that || and && are not associative (#8017)

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

== [css-values] Clarify that || and && are not associative ==
https://drafts.csswg.org/css-values-4/#component-combinators already says

> For reorderable combinators (||, &&), ordering of the grammar does not matter: components **in the same grouping** may be interleaved in any order.

But it may be useful to clarify that components in the same grouping can't be interleaved with components of another grouping, e.g.
 - `a || b || c` allows `a`, `b`, `c` or combinations of them in any order
 - `[ a || b ] || c` is like `a || b || c` but it doesn't allow `a c b` nor `b c a`
 - `a || [ b || c ]` is like `a || b || c` but it doesn't allow `b a c` nor `c a b`

Similarly,
 - `a && b && c` allows the permutations of `a`, `b` and `c`
 - `[ a && b ] && c` is like `a && b && c` but it doesn't allow `a c b` nor `b c a`
 - `a && [ b && c ]` is like `a && b && c` but it doesn't allow `b a c` nor `c a b`

In #7884 there is some confusion about this.

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


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

Received on Friday, 4 November 2022 16:18:13 UTC