Created
August 17, 2014 18:41
-
-
Save EdCharbeneau/49f20f59bcc7aedf008f to your computer and use it in GitHub Desktop.
Select previous sibling CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .previous:has(+ .next) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://caniuse.com/#feat=css-has
It is a working draft. We'll get it eventually.
What would be more useful is previous sibling selector.