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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/overflow/overflow-scroll-with-opaque-background.html

Issue 2516303003: Revert of Only promote opaque scrollers which are stacking contexts. (Closed)
Patch Set: Created 4 years, 1 month 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/composited-scroll.js"></script> 2 <script src="resources/composited-scroll.js"></script>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 if (window.internals) 7 if (window.internals)
8 internals.runtimeFlags.compositeOpaqueScrollersEnabled = true; 8 internals.runtimeFlags.compositeOpaqueScrollersEnabled = true;
9 9
10 onload = function() { 10 onload = function() {
11 if (!window.testRunner || !window.internals) 11 if (!window.testRunner || !window.internals)
12 return; 12 return;
13 13
14 var result = ""; 14 var result = "";
15 result += "Should have opaque composited scrolling contents layer: "; 15 result += "Should have opaque composited scrolling contents layer: ";
16 if (hasOpaqueCompositedScrollingContentsLayer(JSON.parse(window.internals.la yerTreeAsText(document)))) 16 if (hasOpaqueCompositedScrollingContentsLayer(JSON.parse(window.internals.la yerTreeAsText(document))))
17 result += "Pass.\n"; 17 result += "Pass.\n";
18 else 18 else
19 result += "Fail.\n"; 19 result += "Fail.\n";
20 testRunner.setCustomTextOutput(result); 20 testRunner.setCustomTextOutput(result);
21 } 21 }
22 </script> 22 </script>
23 <style> 23 <style>
24 #scroller { 24 #scroller {
25 background: white local content-box; 25 background: white local content-box;
26 border: 10px solid rgba(0, 255, 0, 0.5); 26 border: 10px solid rgba(0, 255, 0, 0.5);
27 contain: paint;
28 overflow: scroll; 27 overflow: scroll;
29 width: 200px; 28 width: 200px;
30 height: 200px; 29 height: 200px;
31 } 30 }
32 .spacer { 31 .spacer {
33 height: 300px; 32 height: 300px;
34 } 33 }
35 </style> 34 </style>
36 <!-- The scroller's Scrolling Contents Layer should be opaque due to the opaque 35 <!-- The scroller's Scrolling Contents Layer should be opaque due to the opaque
37 color background. Even though the background has a content-box clip there 36 color background. Even though the background has a content-box clip there
38 is no gap because the scroller has no padding. This means that we will be 37 is no gap because the scroller has no padding. This means that we will be
39 able to draw text with subpixel anti-aliasing. 38 able to draw text with subpixel anti-aliasing.
40 --> 39 -->
41 <div id="scroller"><div class="spacer"></div></div> 40 <div id="scroller"><div class="spacer"></div></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698