<!DOCTYPE html>
<style>
ul { list-style-image: url('./resources/diamond.png'); }
ul>li::selection { background: yellow; }
</style>
<div>
Test pass if background of image list style in ul is yellow.
<ul>
<li>One</li>
<li>Two</li>
</ul>
</div>
<script>
var range = document.createRange();
range.selectNode(document.querySelector('ul'));
getSelection().addRange(range);
</script>