Сustom checkboxes are on steroids with :has()
The next-sibling combinator has one disadvantage. It’s broken if the order of elements is changed. :has smashes this issue!
Note! You can read the all CSS isn’t magic posts right away. Just take a paid subscription.


