background-image
:<div style="background-image: url();" id="_1">
<div id="_2">
<div style="background-image:url();" id="_3">text</div>
<div>
</div>
var withBgProp = document.querySelectorAll('div[style^="background-image"]')
var withFilledBg = Array.prototype.slice.call(withBgProp).filter(
el => !!el.style.backgroundImage.match(/\("(.+)"\)/)
)
https://jsfiddle.net/z7t44c5k/