I want to find the previous sibling of all my element and changes its color. below is an example:
<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>
as per the example, i want nodes 2,4,7,9 to be affected by css/sass. We don't have any classes to elements nor can we use any script.