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

Side by Side Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-dynamic.html

Issue 13828004: Avoid compositing fixed-position elements if they cannot scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and addressed feedback Created 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .fixed { 6 .fixed {
7 position: fixed; 7 position: fixed;
8 width: 10px; 8 width: 10px;
9 height: 10px; 9 height: 10px;
10 top: -100px; 10 top: -100px;
(...skipping 13 matching lines...) Expand all
24 document.body.offsetHeight; 24 document.body.offsetHeight;
25 fixed.className = "fixed"; 25 fixed.className = "fixed";
26 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do cument); 26 var mainThreadScrollingReasons = internals.mainThreadScrollingReasons(do cument);
27 document.getElementById("result").innerText = !mainThreadScrollingReason s ? "PASS" : "FAIL: " + mainThreadScrollingReasons; 27 document.getElementById("result").innerText = !mainThreadScrollingReason s ? "PASS" : "FAIL: " + mainThreadScrollingReasons;
28 testRunner.notifyDone(); 28 testRunner.notifyDone();
29 }, false); 29 }, false);
30 } 30 }
31 </script> 31 </script>
32 </head> 32 </head>
33 33
34 <body> 34 <!-- Fixed position elements may skip compositing without a scrollable
35 ancestor. To make sure this test covers the intended scenario, we force the
36 body element to be tall, so that the FrameView is scrolling. -->
37 <body style="height: 4000px;">
35 <pre id="result"></pre> 38 <pre id="result"></pre>
36 </body> 39 </body>
37 </html> 40 </html>
38 41
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698