SEANK.H.LIAO

css select everything of the same class on hover

hover on element and highlight all elements with the same class with pure CSS

select everything

You have a lot of elements with the same class and you want to make them all change when you hover over one of them. Also known as this stackoverflow question.

The old way either meant:

CSS has a new selector: :has() that though still experimental on most browsers would allow us to do what we want:

Note: the above performs absymally, restricting to direct descendants is much faster: