Bug 1540738 [wpt PR 15936] - [ElementTiming] Mimic FCP++ rect computations, a=testonly
[gecko.git] / testing / web-platform / tests / element-timing / resources / iframe-with-square-sends-entry.html
blob3c43a41c7d910e025837326e6c7b018060b10621
1 <!DOCType html>
2 <html>
3 <style>
4 body {
5 margin: 0;
7 </style>
8 <body>
9 <script>
10 const observer = new PerformanceObserver(entryList => {
11 top.postMessage({
12 'length' : entryList.getEntries().length,
13 'entryType' : entryList.getEntries()[0].entryType,
14 'rect' : entryList.getEntries()[0].intersectionRect,
15 }, '*');
16 });
17 observer.observe({entryTypes: ['element']});
18 </script>
19 <img src=square100.png elementtiming=my_image/>
20 </body>
21 </html>