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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/composite-scrollable-fixed-position-when-descendants-composite.html

Issue 2839263002: Don't promote position: fixed elements with composited descendants if they don't scroll (Closed)
Patch Set: Address reviewer comment Created 3 years, 7 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 Any errors will show below this line. 2 Any errors will show below this line.
3 <!-- Having a composited child should always be a position:fixed compositing tri gger --> 3 <!-- Having a composited child should be a position:fixed compositing trigger wh en scrollable -->
4 <div style="position: fixed; width: 100px; height: 100px; background: lightgray" > 4 <div style="position: fixed; width: 100px; height: 100px; background: lightgray" >
5 <div style="will-change: transform; margin: 50px; width: 50px; height: 50px; background: lightblue"> 5 <div style="will-change: transform; margin: 50px; width: 50px; height: 50px; background: lightblue">
6 </div> 6 </div>
7 </div> 7 </div>
8 <div style="height: 2000px;"></div>
8 <script src="../resources/testharness.js"></script> 9 <script src="../resources/testharness.js"></script>
9 <script> 10 <script>
10 if (window.testRunner) 11 if (window.testRunner)
11 testRunner.dumpAsText(); 12 testRunner.dumpAsText();
12 if (window.internals) { 13 if (window.internals) {
13 var layers = JSON.parse(internals.layerTreeAsText(document)); 14 var layers = JSON.parse(internals.layerTreeAsText(document));
14 assert_true(layers["layers"].length == 3); 15 assert_true(layers["layers"].length == 3);
15 } 16 }
16 </script> 17 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698