summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/largest-contentful-paint/resources/iframe-stores-entry.html
blob: cd600254805570deab8447ea843657d7f268b7c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html>
<body>
<p>Text</p>
<script>
  const observer = new PerformanceObserver(entryList => {
    window.parent.triggerTest(entryList.getEntries()[0]);
  });
  observer.observe({type: 'largest-contentful-paint', buffered: true});
</script>
</body>
</html>