:has is CSS that selector helps you select elements when they contain other elements that match the selector you pass into :has()
Exey Panteleev | CC BY 2.0