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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/always-composite-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
(Empty)
1 <!doctype HTML>
2 Any errors will show below this line.
3 <!-- Having a composited child should always be a position:fixed compositing tri gger -->
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">
6 </div>
7 </div>
8 <script src="../resources/testharness.js"></script>
9 <script>
10 if (window.testRunner)
11 testRunner.dumpAsText();
12 if (window.internals) {
13 var layers = JSON.parse(internals.layerTreeAsText(document));
14 assert_true(layers["layers"].length == 3);
15 }
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698