Remix.run Logo
Izkata 2 hours ago

> .someclass[[ancestor::.mainEntry .headline:empty]]

> or maybe you would prefer

> .mainEntry[[.headline:empty]] .someclass

I don't really know xpath but isn't that this?

.mainEntry:has(.headline:empty) .someClass