Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 <html>
2 <head>
3 <body>
4 <img class="big-horizontal" src="large-image.jpg" style="width:500px;" />
5 <canvas class="big-vertical" style="width:500px;"></canvas>
6 <img class="small" src="small-image.gif"></img>
7 <script>
8 window.onload = () => {
9 var canvas = document.querySelector("canvas"), ctx = canvas.getContext("2d");
10 canvas.width = 1000;
11 canvas.height = 2000;
12 ctx.fillStyle = "red";
13 ctx.fillRect(0, 0, 1000, 2000);
15 window.opener.postMessage('ready', '*')
16 }
17 </script>
18 </body>
19 </html>