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

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

Issue 2522043002: Reland "Only promote opaque scrollers which are stacking contexts." (Closed)
Patch Set: Remove android svg-width-100p-as-background-expected.txt expectation. 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;
27 overflow: scroll; 28 overflow: scroll;
28 width: 200px; 29 width: 200px;
29 height: 200px; 30 height: 200px;
30 } 31 }
31 .spacer { 32 .spacer {
32 height: 300px; 33 height: 300px;
33 } 34 }
34 </style> 35 </style>
35 <!-- The scroller's Scrolling Contents Layer should be opaque due to the opaque 36 <!-- The scroller's Scrolling Contents Layer should be opaque due to the opaque
36 color background. Even though the background has a content-box clip there 37 color background. Even though the background has a content-box clip there
37 is no gap because the scroller has no padding. This means that we will be 38 is no gap because the scroller has no padding. This means that we will be
38 able to draw text with subpixel anti-aliasing. 39 able to draw text with subpixel anti-aliasing.
39 --> 40 -->
40 <div id="scroller"><div class="spacer"></div></div> 41 <div id="scroller"><div class="spacer"></div></div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698