Html – Why does the :has pseudo selector not work with a list of elements?
I have a div block with a class "help-image" that contains an <img>, inside a section with a class "help-section". Using the :has selector as follows works fine: section.help-section > div:has(img), section.help-section > div:has(figure), section.help-section > div:has(button) { background: mistyrose;…