summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-highlight-api/painting/resources/iframe-container.html
blob: c89680e28c920683c23583dee63d8793557c4a80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<style>
  ::highlight(highlight1) {
    text-underline-offset: 1cqw;
    text-decoration-line: underline;
    text-decoration-color: green;
    text-decoration-thickness: 2cqh;
  }
</style>
<div id="h1">With container size</div>
<script>
  let r1 = new Range();
  r1.setStart(h1, 0);
  r1.setEnd(h1, 1);
  CSS.highlights.set("highlight1", new Highlight(r1));
</script>