[csswg-drafts] [css-selectors] Postcede selector

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

== [css-selectors] Postcede selector ==
Similar to the `element1~element2` and `element1+element2` selectors. However, this will select in the other direction.

Suggestion:

`element1:precedes(element2)`
Example:
`label:precedes(input)` will select all labels that immediately precede any input tags.

I was also thinking about suggestion the opposite to the `~` selector but that seems like it would have much more speed difficulties compared to just this and to me at least it seems like it would be less used.

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

Received on Tuesday, 8 August 2017 15:04:12 UTC