I am trying to locate the previous sibling of each of my list items and change its color. Here is an example for reference:
<ul>
<li> 1
<li> 2
<ul>
<li> 3
<li> 4
<ul>
<li> 5
<li> 6
</ul>
</ul>
<li> 7
<ul>
<li> 8
<li> 9
<ul>
<li> 10
<li> 11
</ul>
</ul>
</ul>
In the given scenario, I aim to apply CSS/SASS styles to nodes 2, 4, 7, and 9 without any element classes or scripting capabilities.