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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/change-compositing-settings.html

Issue 1826013002: Enable compositing for opaque scrolling content on low DPI screens (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable feature by default, not enabled in dev builds Created 4 years, 4 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 <script src="../resources/js-test.js"></script> 2 <script src="../resources/js-test.js"></script>
3 <style> 3 <style>
4 #scroller { 4 #scroller {
5 overflow: scroll; 5 overflow: scroll;
6 height: 300px; 6 height: 300px;
7 width: 300px; 7 width: 300px;
8 background-color: red; 8 background-color: rgba(255,0,0,0.5); /* Force non-promotion due to backgroun d opacity */;
9 } 9 }
10 10
11 #scrolled { 11 #scrolled {
12 height: 1000px; 12 height: 1000px;
13 width: 250px; 13 width: 250px;
14 background-color: green; 14 background-color: rgba(0,128,0,0.5); /* Force non-promotion due to backgroun d opacity */;
15 } 15 }
16 </style> 16 </style>
17 17
18 <script> 18 <script>
19 jsTestIsAsync = true; 19 jsTestIsAsync = true;
20 20
21 description('This test checks that changes to the compositor\'s settings are app lied correctly.'); 21 description('This test checks that changes to the compositor\'s settings are app lied correctly.');
22 22
23 function isUsingCompositedScrolling(layer) { 23 function isUsingCompositedScrolling(layer) {
24 layer = layer || JSON.parse(window.internals.layerTreeAsText(document)); 24 layer = layer || JSON.parse(window.internals.layerTreeAsText(document));
(...skipping 23 matching lines...) Expand all
48 } else { 48 } else {
49 testFailed('Composited scrolling did not become enabled: ' + stateBefore + ", " + stateAfter); 49 testFailed('Composited scrolling did not become enabled: ' + stateBefore + ", " + stateAfter);
50 } 50 }
51 finishJSTest(); 51 finishJSTest();
52 }; 52 };
53 </script> 53 </script>
54 54
55 <div id="scroller"> 55 <div id="scroller">
56 <div id="scrolled"></div> 56 <div id="scrolled"></div>
57 </div> 57 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698