How would i select images in this document that are not inside a element with a .todeep class? In the case below the second and the third element should be selected. I don't know how deep the images will be after a "todeep" element.
<body>
<div class="todeep">
<img>
</div>
<div>
<img>
<div>
<img>
<div class="todeep">
<img>
<div>
<img />
</div>
</div>
</div>
</div>
</body>
I first thought of a simple solution: *:not(.todeep) img, but this will also select images that have a non "todeep" element among their ancestors also.