Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(418)

Side by Side Diff: LayoutTests/compositing/squashing/squashing-into-ancestor-painted-layer.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <!-- 2 <!--
3 This test creates a scenario where we attempt to squash into a layer that 3 This test creates a scenario where we attempt to squash into a layer that
4 paints into its composited ancestor. This should not crash. 4 paints into its composited ancestor. This should not crash.
5 5
6 It also happens that we shouldn't promote |container| in this case as its 6 It also happens that we shouldn't promote |container| in this case as its
7 composited descendants are invisible, but that's a separate bug. See, 7 composited descendants are invisible, but that's a separate bug. See,
8 crbug.com/403894. 8 crbug.com/403894.
9 --> 9 -->
10 <style> 10 <style>
11 body { 11 body {
12 -webkit-transform: translateZ(0); 12 transform: translateZ(0);
13 } 13 }
14 #overlapper { 14 #overlapper {
15 width: 400px; 15 width: 400px;
16 height: 400px; 16 height: 400px;
17 left: 200px; 17 left: 200px;
18 background: gray; 18 background: gray;
19 position: absolute; 19 position: absolute;
20 -webkit-transform: translateZ(0); 20 transform: translateZ(0);
21 } 21 }
22 22
23 #container { 23 #container {
24 -webkit-perspective: 1400px; 24 -webkit-perspective: 1400px;
25 position: absolute; 25 position: absolute;
26 width: 180px; 26 width: 180px;
27 height: 180px; 27 height: 180px;
28 background: papayawhip; 28 background: papayawhip;
29 } 29 }
30 30
31 #composited { 31 #composited {
32 width: 100px; 32 width: 100px;
33 height: 100px; 33 height: 100px;
34 left: 200px; 34 left: 200px;
35 background: green; 35 background: green;
36 position: absolute; 36 position: absolute;
37 -webkit-transform: translateZ(10px); 37 transform: translateZ(10px);
38 visibility: hidden; 38 visibility: hidden;
39 } 39 }
40 40
41 #squashed { 41 #squashed {
42 position: absolute; 42 position: absolute;
43 width: 50px; 43 width: 50px;
44 height: 50px; 44 height: 50px;
45 background: blue; 45 background: blue;
46 } 46 }
47 </style> 47 </style>
48 <div id="overlapper"></div> 48 <div id="overlapper"></div>
49 <div id="container"> 49 <div id="container">
50 <div id="composited"></div> 50 <div id="composited"></div>
51 </div> 51 </div>
52 <div id="squashed"></div> 52 <div id="squashed"></div>
53 THIS TEST PASSES IF IT DOES NOT CRASH 53 THIS TEST PASSES IF IT DOES NOT CRASH
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698