I need to select only the first and the last classes over the entire document using only pure CSS,
in my case the structure is the following:
<div class="Container">
<div>
<div class="Parent"></div>
<pre>
<span>
<span class="myClass">YES</span>
<span class="myClass">NO</span>
<span class="myClass">NO</span>
</span>
</pre>
</div>
<div>
<div class="Parent"></div>
<pre>
<span>
<span class="myClass">NO</span>
<span class="myClass">NO</span>
<span class="myClass">YES</span>
</span>
</pre>
</div>
</div>
NOTE: I'm trying to apply this on a real codemirror matchtags, I'm not sure if that the structure that I posted is correct.. Here the real codemirror matchtags demo