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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/fixed-under-composited-fixed-scrolled.html

Issue 2369603002: Turn on CompositeOpaqueFixedPosition for test and rebase tests. (Closed)
Patch Set: . Created 4 years, 2 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/text-based-repaint.js"></script> 2 <script src="resources/text-based-repaint.js"></script>
3 <script> 3 <script>
4 function repaintTest() { 4 function repaintTest() {
5 document.getElementById('fixed').style.display = 'none'; 5 document.getElementById('fixed').style.display = 'none';
6 } 6 }
7 onload = function() { 7 onload = function() {
8 // Scroll before repaint test to test correct scroll offset of invalidation re ct 8 // Scroll before repaint test to test correct scroll offset of invalidation re ct
9 // for fixed-position element when it needs repaint. 9 // for fixed-position element when it needs repaint.
10 window.scrollTo(0, 400); 10 window.scrollTo(0, 400);
11 runRepaintAndPixelTest(); 11 runRepaintAndPixelTest();
12 }; 12 };
13 </script> 13 </script>
14 <style> 14 <style>
15 body { 15 body {
16 height: 2000px; 16 height: 2000px;
17 } 17 }
18 #fixed-container { 18 #fixed-container {
19 position: fixed; 19 position: fixed;
20 top: 0; 20 top: 0;
21 left: 0; 21 left: 0;
22 width: 100%; 22 width: 100%;
23 height: 100%; 23 height: 100%;
24 background-color: green; 24 background-color: green;
25 backface-visibility: hidden; 25 backface-visibility: hidden;
26 } 26 }
27 #fixed { 27 #fixed {
28 position: fixed; 28 position: fixed;
29 /* Using 99% opacity to ensure fixed position is not automatically promoted. * /
30 opacity: 0.99;
29 top: 100px; 31 top: 100px;
30 left: 100px; 32 left: 100px;
31 width: 200px; 33 width: 200px;
32 height: 200px; 34 height: 200px;
33 background-color: red; 35 background-color: red;
34 } 36 }
35 </style> 37 </style>
36 Tests paint invalidation of fixed elements under a composited fixed element afte r scrolled. 38 Tests paint invalidation of fixed elements under a composited fixed element afte r scrolled.
37 Passes if there is only green background. 39 Passes if there is only green background.
38 <div id="fixed-container"> 40 <div id="fixed-container">
39 <div id="fixed"></div> 41 <div id="fixed"></div>
40 </div> 42 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698