Day 91: a previous sibling selector with :has()

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
I’ve already shown much appreciation for the :has() pseudo-class in this series, but that we can use it as a previous sibling selector tops it all of.Since this is not an official selector, but more something like a hack, it can be hard to read and interpret. So, let’s start nice and easy. We have three buttons. If we hover/focus one button and...