active-css
active-css copied to clipboard
Add next and previous nearest adjacent sibling combinators
Had a use case for this, so I've added it to the core:
" ~> " gets the nearest next sibling that matches the selector after the combinator. " ~< " gets the nearest previous sibling that matches the selector after the combinator.
Works everywhere like the other special combinators.
Note that the "<" combinator must now have at least one space either side in the config for it to work. I dunno why I didn't enforce that earlier like I do with the other special combinators. That's the only potential breaking change with this.
Now on the 2.16 branch. I haven't given up on releases, I guarantee that at some point in the next decade there might be an official release of 2.16.