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

Side by Side Diff: LayoutTests/compositing/squashing/visibility-composited-squashing.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 <html> 2 <html>
3 <head> 3 <head>
4 <style> 4 <style>
5 .set { 5 .set {
6 position: absolute; 6 position: absolute;
7 top: 8px; 7 top: 8px;
8 } 8 }
9 .box { 9 .box {
10 height: 100px; 10 height: 100px;
11 width: 100px; 11 width: 100px;
12 background-color: lightblue; 12 background-color: lightblue;
13 } 13 }
14 .squashed { 14 .squashed {
15 height: 40px; 15 height: 40px;
16 width: 40px; 16 width: 40px;
17 background-color: lightgreen; 17 background-color: lightgreen;
18 position: absolute; 18 position: absolute;
19 left: 16px; 19 left: 16px;
20 } 20 }
21 .hidden { 21 .hidden {
22 visibility: hidden; 22 visibility: hidden;
23 } 23 }
24 .visible { 24 .visible {
25 visibility: visible; 25 visibility: visible;
26 } 26 }
27 .composited { 27 .composited {
28 -webkit-transform: translateZ(1px); 28 transform: translateZ(1px);
29 } 29 }
30 </style> 30 </style>
31 <script> 31 <script>
32 if (window.testRunner) { 32 if (window.testRunner) {
33 testRunner.waitUntilDone(); 33 testRunner.waitUntilDone();
34 internals.settings.setLayerSquashingEnabled(true); 34 internals.settings.setLayerSquashingEnabled(true);
35 } 35 }
36 requestAnimationFrame(function() { 36 requestAnimationFrame(function() {
37 requestAnimationFrame(function() { 37 requestAnimationFrame(function() {
38 document.getElementById('target1').classList.add('visible'); 38 document.getElementById('target1').classList.add('visible');
(...skipping 15 matching lines...) Expand all
54 <div id="target1" class="squashed hidden" style="top: 54px"></div> 54 <div id="target1" class="squashed hidden" style="top: 54px"></div>
55 </div> 55 </div>
56 56
57 <div class="set" style="top: 116px"> 57 <div class="set" style="top: 116px">
58 <div class="composited box"></div> 58 <div class="composited box"></div>
59 <div id="target2" class="squashed hidden" style="top: 4px"></div> 59 <div id="target2" class="squashed hidden" style="top: 4px"></div>
60 <div class="squashed hidden" style="top: 54px"></div> 60 <div class="squashed hidden" style="top: 54px"></div>
61 </div> 61 </div>
62 </body> 62 </body>
63 </html> 63 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698