How do you select the nth item in a list based on that item’s child's attributes using only CSS selectors
So if I have a list like this: <ul> <li><button disabled/></li> <li><button disabled/></li> <li><button /></li> <li><button /></li> <li><button /></li> </ul> And the amount of disabled buttons is never known - but will always be consecutive and appear before the enabled…