Skip to content

Truly independent web browser

449 B
Raw Blame
<!DOCTYPE html>
<link rel="match" href="../expected/custom-highlight-image-in-range-without-colors-ref.html">
<style>
::highlight(underline) {
    text-decoration: underline;
}
img {
    display: block;
    width: 50px;
    height: 50px;
}
</style>
<div id="container"><img src="../data/50x50-green.svg"></div>
<script>
const range = new Range();
range.selectNodeContents(container);
CSS.highlights.set("underline", new Highlight(range));
</script>