OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <!-- | 3 <!-- |
4 On Safari, this test verifies that a composited layer's bounds include f
ilter outsets after | 4 On Safari, this test verifies that a composited layer's bounds include f
ilter outsets after |
5 a software-painted blur animation. On Safari, the filter animation is pa
inted in software | 5 a software-painted blur animation. On Safari, the filter animation is pa
inted in software |
6 because drop-shadow appears before another filter in the chain. | 6 because drop-shadow appears before another filter in the chain. |
7 | 7 |
8 If the test passes, you should see a blurred-out green element. Its comp
osited layer should | 8 If the test passes, you should see a blurred-out green element. Its comp
osited layer should |
9 be large enough so that the blur does not appear clipped. | 9 be large enough so that the blur does not appear clipped. |
10 --> | 10 --> |
11 <style> | 11 <style> |
12 #composited-layer { | 12 #composited-layer { |
13 background-color: green; | 13 background-color: green; |
14 -webkit-transform: translateZ(0); | 14 transform: translateZ(0); |
15 position: absolute; | 15 position: absolute; |
16 top: 100px; | 16 top: 100px; |
17 left: 100px; | 17 left: 100px; |
18 width: 100px; | 18 width: 100px; |
19 height: 100px; | 19 height: 100px; |
20 } | 20 } |
21 .initial-drop-shadow { | 21 .initial-drop-shadow { |
22 /* Safari paints filters in software when drop-shadow appears before
another filter in the chain. */ | 22 /* Safari paints filters in software when drop-shadow appears before
another filter in the chain. */ |
23 -webkit-filter: drop-shadow(10px 10px 0px black) blur(0); | 23 -webkit-filter: drop-shadow(10px 10px 0px black) blur(0); |
24 } | 24 } |
(...skipping 30 matching lines...) Expand all Loading... |
55 testRunner.dumpAsText(); | 55 testRunner.dumpAsText(); |
56 testRunner.notifyDone(); | 56 testRunner.notifyDone(); |
57 } | 57 } |
58 </script> | 58 </script> |
59 </head> | 59 </head> |
60 <body onload="startTest()"> | 60 <body onload="startTest()"> |
61 <div id="composited-layer" class="initial-drop-shadow"></div> | 61 <div id="composited-layer" class="initial-drop-shadow"></div> |
62 <pre id="console"></pre> | 62 <pre id="console"></pre> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |