summaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/html/direct-image-compositing.html
blob: 53a4ca137596d4189c38810c9b49d54b1b58e373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>Testing direct image layer optimization</title>
  <style type="text/css" media="screen">
    img {
      float: left;
      width: 150px;
      height: 150px;
    }
    img {
      -webkit-transform: rotate3d(0, 0, 1, 0);
    }
    .test {
      float: left;
      height: 200px;
      width: 260px;
    }
   </style>
</head>
<body>

  <h1>Image optimization in layers</h1>

  <p>
    This test exercises direct compositing of images with hardware acceleration. The visual results
    using ACCELERATED_COMPOSITING and regular TOT should be identical. Running this test manually with
    the correct debug options will show which elements are directly composited. See
    <a href="https://bugs.webkit.org/show_bug.cgi?id=23361">https://bugs.webkit.org/show_bug.cgi?id=23361</a>
  </p>

  <div class="test">
    <img src="resources/simple_image.png">
    Basic image - no style - can be directly composited
  </div>

  <div class="test">
    <img src="resources/simple_image.png" style="border: 5px solid blue;">
    5px blue border - can NOT be directly composited
  </div>

  <div class="test">
    <img src="resources/simple_image.png" style="margin: 5px 5px;">
    margin - can NOT be directly composited
  </div>

  <div class="test">
    <img src="resources/simple_image.png" style="background-color: grey;">
    solid background - can be directly composited
  </div>

  <div class="test">
    <img src="resources/simple_image.png" style="background: orange url(resources/simple_image.png) -50px -50px;">
    background image - can NOT be directly composited
  </div>

  <div class="test">
    <img src="resources/simple_image.png" style="-webkit-transform: rotate3d(0, 0, 1, 10deg);">
    rotated but otherwise no style - can be directly composited
  </div>

</body>
</html>