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

Side by Side Diff: LayoutTests/compositing/layer-creation/overlap-transforms.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 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .container { 6 .container {
7 height: 240px; 7 height: 240px;
8 width: 120px; 8 width: 120px;
9 overflow: hidden; 9 overflow: hidden;
10 position: relative; 10 position: relative;
11 z-index: 0; /* create stacking context */ 11 z-index: 0; /* create stacking context */
12 border: 1px solid black; 12 border: 1px solid black;
13 } 13 }
14 14
15 .box { 15 .box {
16 position: relative; 16 position: relative;
17 width: 100px; 17 width: 100px;
18 height: 100px; 18 height: 100px;
19 margin: 10px; 19 margin: 10px;
20 background-color: blue; 20 background-color: blue;
21 } 21 }
22 22
23 .transformed { 23 .transformed {
24 -webkit-transform: translateZ(1px); /* non-affine transform */ 24 transform: translateZ(1px); /* non-affine transform */
25 } 25 }
26 </style> 26 </style>
27 <script> 27 <script>
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.dumpAsText(); 29 testRunner.dumpAsText();
30 30
31 function testDone() 31 function testDone()
32 { 32 {
33 if (window.testRunner) 33 if (window.testRunner)
34 document.getElementById('layers').innerText = window.internals.layerTree AsText(document); 34 document.getElementById('layers').innerText = window.internals.layerTree AsText(document);
35 } 35 }
36 window.addEventListener('load', testDone, false); 36 window.addEventListener('load', testDone, false);
37 </script> 37 </script>
38 </head> 38 </head>
39 <body> 39 <body>
40 <div class="container"> 40 <div class="container">
41 <div class="transformed box"></div> 41 <div class="transformed box"></div>
42 <!-- This div will get a layer --> 42 <!-- This div will get a layer -->
43 <div class="box"></div> 43 <div class="box"></div>
44 </div> 44 </div>
45 <!-- This div should not get a layer --> 45 <!-- This div should not get a layer -->
46 <div class="box"></div> 46 <div class="box"></div>
47 <pre id="layers">Layer tree goes here in DRT</pre> 47 <pre id="layers">Layer tree goes here in DRT</pre>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698