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

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

Issue 2423643002: Revert of 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.height = '200px'; 5 document.getElementById('fixed').style.height = '200px';
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);
(...skipping 13 matching lines...) Expand all
24 position: absolute; 24 position: absolute;
25 top: 2000px; 25 top: 2000px;
26 width: 1px; 26 width: 1px;
27 height: 1px; 27 height: 1px;
28 background-color: red; 28 background-color: red;
29 backface-visibility: hidden; 29 backface-visibility: hidden;
30 z-index: 1000; 30 z-index: 1000;
31 } 31 }
32 #fixed { 32 #fixed {
33 position: fixed; 33 position: fixed;
34 /* Using 99% opacity to ensure fixed position is not automatically promoted. * /
35 opacity: 0.99;
36 top: 0; 34 top: 0;
37 left: 0; 35 left: 0;
38 width: 100px; 36 width: 100px;
39 height: 100px; 37 height: 100px;
40 background-color: green; 38 background-color: green;
41 } 39 }
42 </style> 40 </style>
43 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled. 41 Tests paint invalidation of fixed element under a composited absolute element on resize after scrolled.
44 Passes if there is a 100x200 green rectangle and no red. 42 Passes if there is a 100x200 green rectangle and no red.
45 <div id="indicator"></div> 43 <div id="indicator"></div>
46 <div id="absolute"> 44 <div id="absolute">
47 <div id="fixed"> 45 <div id="fixed">
48 </div> 46 </div>
49 </div> 47 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698