AXR/Specification — Issue #29: collection selection
Author: Mouvedia
Created: 2012-01-05 16:19:49+00:00
State: open
Labels: under discussion

first read #14

How do you implement the collection selection (selects all elements combined) without doubling the number of existing position filters?

Please // A1
The keys // A2
Lorem // A3
text // Ax1
text // Ax2

Lorem // B1
text // Bx
Please // B2
The keys // B3

note *:even { } // selects A2, Ax2, B2

What should be done to select the odd combined collection (A2, Ax1, B1 and B2)?

Here's 4 propositions:
1/ all filters will have a new counterpart (à la first-of-type vs first-child)
2/ instead of adding new filters I propose that using `::` before a filter means it selects all the elements (and not each and every)
3/ a new argument `:filter(arg)`
4/ add a new filter called `:all` (or something else)