CSS o selector

*:is(.a, .b).c{...}
Blushing Bug