summaryrefslogtreecommitdiffstats
path: root/layout/reftests/image-element/canvas-outside-document.html
blob: 259b69e73128d82169a558f326bbe0e54b506156 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/licenses/publicdomain/

     Test document.mozSetImageElement() with a DOM element not in a document.
-->
<html>
<body style="margin:0">
  <div style="width:100px; height:100px;
              background:-moz-element(#d);"></div>

  <script src="canvas-drawing.js"></script>
  <script>
    var canvas = createCanvas();
    document.mozSetImageElement("d", canvas);
  </script>
</body>
</html>