summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-highlight-api/painting/resources/iframe-code.html
blob: a4a1829be229acb4c0cf75cbb0e2885060741d3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<style>
  ::highlight(foo) {
    color: blue;
    background-color: cyan;
  }
</style>
<span id='span-iframe'>abc</span>
<script>
  let r = new Range();
  r.setStart(document.querySelector('#span-iframe'), 0);
  r.setEnd(document.querySelector('#span-iframe'), 1);
  CSS.highlights.set('foo', new Highlight(r));
</script>