chromium/third_party/blink/web_tests/external/wpt/css/selectors/selection-image-001.html

<!doctype html>
<title>::selection is respected on images</title>
<link rel="author" href="mailto:[email protected]" title="Emilio Cobos Álvarez">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1449010">
<link rel="mismatch" href="selection-image-001-noref.html">
<style>
img::-moz-selection {
  background: green;
}
img::selection {
  background: green;
}
</style>
<p>
  Some text <img src="resources/blue15x15.png"> some more.
</p>
<script>
onload = () => {
  getSelection().removeAllRanges();
  let r = document.createRange();
  r.selectNode(document.documentElement);
  getSelection().addRange(r);
}
</script>