I can not figure out how to select an element (several elements back) from a specific element that has a certain title attribute.
For example, using the following example code, I am trying to target the first <renderer>
element...
<renderer class="scope">
<div id="content" class="scope">
<renderer class="scope">
<div class="scope">
<div id="details" class="scope">
<a title="Foo Bar" href="#">LINK TEXT</a>
</div>
</div>
</renderer>
</div>
</renderer>
I have tried many variation including this...
renderer:has a[title*="Foo Bar"] {
opacity: 0.2 !important;
}
Other things that I have tried don't even come close to working either (even JavaScript).... But possibly because every answer I found on here or other sites are not related to this issue enough to solve the problem.
How can I target and style the first <renderer>
element (or at least 2 levels back) if the link title has specific text in it?