compositing-layer-printing.html 574 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Printing compositing layers</title>
  <style type="text/css">
    .box {
      height: 100px;
      width: 100px;
      margin: 10px;
      background-color: green;
    }
  </style>
  <script>
15 16
    if (window.testRunner)
      testRunner.setPrinting();
17 18 19 20 21 22 23 24
  </script>
</head>
<body>
  <p>You should see two green squares below on screen, and when printed.</p>
  <div class="box"></div>
  <div class="box" style="-webkit-transform: translateZ(0)"></div>
</body>
</html>