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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/clipping-ancestor.html

Issue 2655373003: Squash deceased layer squashing flag (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Settings.json5 » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 .hoverable:hover { 3 .hoverable:hover {
4 transform: translateZ(0); 4 transform: translateZ(0);
5 } 5 }
6 </style> 6 </style>
7 <script> 7 <script>
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.dumpAsText(); 9 testRunner.dumpAsText();
10 10
11 if (window.internals)
12 internals.settings.setLayerSquashingEnabled(true);
13
14 function dumpLayers() 11 function dumpLayers()
15 { 12 {
16 var layersResult = document.getElementById('layers'); 13 var layersResult = document.getElementById('layers');
17 if (window.testRunner) 14 if (window.testRunner)
18 layersResult.innerText = window.internals.layerTreeAsText(document); 15 layersResult.innerText = window.internals.layerTreeAsText(document);
19 } 16 }
20 window.addEventListener('load', dumpLayers, false) 17 window.addEventListener('load', dumpLayers, false)
21 </script> 18 </script>
22 <div style="overflow: hidden; height: 10px; width: 200px; background-color: li ghtblue"> 19 <div style="overflow: hidden; height: 10px; width: 200px; background-color: li ghtblue">
23 <div id="inner" style="transform: translateZ(0); height: 10px; background-co lor: whitesmoke"></div> 20 <div id="inner" style="transform: translateZ(0); height: 10px; background-co lor: whitesmoke"></div>
24 </div> 21 </div>
25 <!-- This div should not sqaush into the inner div, because it is inside an ov erflow:hidden div which therefore clips differently than this div's parent --> 22 <!-- This div should not sqaush into the inner div, because it is inside an ov erflow:hidden div which therefore clips differently than this div's parent -->
26 <div class="hoverable" style="position:absolute; top: 0px; height:100px; width :100px; background-color: lightgreen"></div> 23 <div class="hoverable" style="position:absolute; top: 0px; height:100px; width :100px; background-color: lightgreen"></div>
27 <pre id="layers">Layer tree goes here in DRT</pre> 24 <pre id="layers">Layer tree goes here in DRT</pre>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/Settings.json5 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698