1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Checking for simple image layer optimisation
</title>
8 <style type=
"text/css" media=
"screen">
20 transform: rotate3d(
0,
0,
1,
0);
26 <h1>Image optimisation in layers
</h1>
28 <p style=
"height: auto">
29 In order to run this test you should enable the debugging options that indicate
30 what type of compositing layer is being used.
34 defaults write com.apple.Safari WebCoreLayerRepaintCounter -bool yes
35 defaults write com.apple.Safari WebCoreLayerBorders -bool yes
38 <p style=
"height: auto">
39 Directly composited image layers will have a yellow border and no repaint counter.
43 <img src=
"resources/simple_image.png">
44 Basic image - no style - can be directly composited
48 <img src=
"resources/simple_image.png" style=
"border: 5px solid blue;">
49 5px blue border - can NOT be directly composited
53 <img src=
"resources/simple_image.png" style=
"margin: 10px 20px;">
54 margin - can NOT be directly composited
58 <img src=
"resources/simple_image.png" style=
"background-color: grey;">
59 solid background - can be directly composited
63 <img src=
"resources/simple_image.png" style=
"background: orange url(resources/simple_image.png) -50px -50px;">
64 background image - can NOT be directly composited
68 <img src=
"resources/simple_image.png" style=
"transform: rotate3d(0, 0, 1, 10deg);">
69 rotated but otherwise no style - can be directly composited