Skip to content

Truly independent web browser

633 B
Raw Blame
<!DOCTYPE html>
<link rel="match" href="../expected/selection-with-image-color-fallback-ref.html" />
<style>
img {
    width: 50px;
    height: 50px;
    vertical-align: top;
}
img::selection {
    background-color: transparent;
}
#highlight-color::selection {
    color: rgb(200, 220, 240);
}
#element-color {
    color: rgb(200, 220, 240);
}
#transparent-color::selection {
    color: transparent;
}
</style>
<img id="highlight-color" src="../data/smiley.png"><img id="element-color" src="../data/smiley.png"><img id="transparent-color" src="../data/smiley.png">
<script>
getSelection().selectAllChildren(document.body);
</script>