Share this postCSS isn't magicСustom checkboxes are on steroids with :has()Copy linkFacebookEmailNotesMoreСustom checkboxes are on steroids with :has()Stas MelnikovJan 22, 2025Share this postCSS isn't magicСustom checkboxes are on steroids with :has()Copy linkFacebookEmailNotesMoreShareThe next-sibling combinator has one disadvantage. It's broken if the order of elements is changed. :has smashes this issue!