Status: FAIL | Duration: 7ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/selectors/selection-image-001.html
<!doctype html> <title>::selection is respected on images</title> <link rel="author" href="mailto:emilio@crisal.io" 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>
/css/selectors/selection-image-001-noref.html
<!doctype html> <title>CSS Test Reference</title> <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez"> <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1449010"> <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>