I am referenced with Highlight all elements with same class when one of them is moused over
The way I wanted to know is - Is it possible with CSS?
I am trying with sibling: ~ but it can't highlight previous sibling elements.
.test {
  color: blue;
}
.test:hover, .test:hover ~ .test {
  color: red;
  cursor: pointer;
}
<div>
  <span class="prev">Test Highlight by mouse over the `blue` texts: </span>
  <span class="test">This </span>
  <span class="test">Is </span>
  <span class="test">The </span>
  <span class="test">Highlight</span>
</div>