File: simple-image-compositing.html

package info (click to toggle)
qtwebkit 2.3.4.dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 290,116 kB
  • ctags: 272,544
  • sloc: cpp: 1,417,496; python: 85,048; ansic: 39,353; perl: 38,858; ruby: 10,313; objc: 9,505; xml: 8,679; asm: 3,864; yacc: 2,458; sh: 1,237; lex: 813; makefile: 592; java: 228; php: 79
file content (76 lines) | stat: -rw-r--r-- 1,927 bytes parent folder | download | duplicates (5)
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
67
68
69
70
71
72
73
74
75
76
<!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>Checking for simple image layer optimisation</title>
  <style type="text/css" media="screen">
    img {
      float: left;
      width: 150px;
      height: 150px;
    }
    p {
      clear: both;
      margin: 1em 2em;
      height: 180px;
    }
    img {
      -webkit-transform: rotate3d(0, 0, 1, 0);
    }
   </style>
</head>
<body>

  <h1>Image optimisation in layers</h1>

  <p style="height: auto">
    In order to run this test you should enable the debugging options that indicate
    what type of compositing layer is being used.
  </p>
  
<pre>
defaults write com.apple.Safari WebCoreLayerRepaintCounter -bool yes
defaults write com.apple.Safari WebCoreLayerBorders -bool yes
</pre>
  
  <p style="height: auto">
    Directly composited image layers will have a yellow border and no repaint counter.
  </p>

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

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

  <p>
    <img src="resources/simple_image.png" style="margin: 10px 20px;">
    margin - can NOT be directly composited
  </p>

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

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

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




</body>
</html>