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

Side by Side Diff: LayoutTests/compositing/squashing/invisible-layers-should-not-affect-geometry.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 .box { 5 .box {
6 position: absolute; 6 position: absolute;
7 top: 10px; 7 top: 10px;
8 left: 10px; 8 left: 10px;
9 height: 100px; 9 height: 100px;
10 width: 100px; 10 width: 100px;
11 background-color: green; 11 background-color: green;
12 } 12 }
13 .invisible { 13 .invisible {
14 height: 400px; 14 height: 400px;
15 width: 400px; 15 width: 400px;
16 position: absolute; 16 position: absolute;
17 visibility: hidden; 17 visibility: hidden;
18 background-color: red; 18 background-color: red;
19 } 19 }
20 .composited { 20 .composited {
21 -webkit-transform: translateZ(0); 21 transform: translateZ(0);
22 } 22 }
23 </style> 23 </style>
24 <script> 24 <script>
25 if (window.testRunner) { 25 if (window.testRunner) {
26 testRunner.dumpAsText(); 26 testRunner.dumpAsText();
27 internals.settings.setLayerSquashingEnabled(true); 27 internals.settings.setLayerSquashingEnabled(true);
28 } 28 }
29 function runTest() { 29 function runTest() {
30 if (window.internals) { 30 if (window.internals) {
31 var pre = document.createElement('pre'); 31 var pre = document.createElement('pre');
(...skipping 10 matching lines...) Expand all
42 composited layers. If you see a rect with dimensions 400x400, that means 42 composited layers. If you see a rect with dimensions 400x400, that means
43 that the invisible layer has been included and things are broken. 43 that the invisible layer has been included and things are broken.
44 --> 44 -->
45 <div class="composited box"></div> 45 <div class="composited box"></div>
46 <div class="box"></div> 46 <div class="box"></div>
47 <div class="invisible"> 47 <div class="invisible">
48 <div class="box"></div> 48 <div class="box"></div>
49 </div> 49 </div>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/compositing/squashing/clipping-ancestor.html ('k') | LayoutTests/compositing/squashing/move-squashing-layer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698