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

Side by Side Diff: LayoutTests/fast/repaint/resources/repaint-with-scrollbar-change.html

Issue 1298493003: Currently we only composite fixed position elements if we are on High DPI devices. This fix allows … Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update fixed-scroll-in-empty-root-layer Created 5 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 <style> 2 <style>
3 #container { 3 #container {
4 height: 4000px; 4 height: 4000px;
5 background-color: red; 5 background-color: red;
6 } 6 }
7 .noScroll { 7 .noScroll {
8 overflow-y: hidden; 8 overflow-y: hidden;
9 } 9 }
10 #overlay { 10 #overlay {
11 bottom: 0; 11 bottom: 0;
12 left: 0; 12 left: 0;
13 position: fixed; 13 position: fixed;
14 right: 0; 14 right: 0;
15 top: 0; 15 top: 0;
16 background-color: green; 16 background-color: rgba(0, 128, 0, 0.99);
17 } 17 }
18 .hidden { 18 .hidden {
19 display: none; 19 display: none;
20 } 20 }
21 input { 21 input {
22 position: fixed; 22 position: fixed;
23 z-index: 10; 23 z-index: 10;
24 bottom: 0; 24 bottom: 0;
25 } 25 }
26 </style> 26 </style>
(...skipping 10 matching lines...) Expand all
37 overlay.classList.toggle('hidden'); 37 overlay.classList.toggle('hidden');
38 document.body.classList.toggle('noScroll'); 38 document.body.classList.toggle('noScroll');
39 } 39 }
40 40
41 if (window.testRunner) 41 if (window.testRunner)
42 window.testRunner.waitUntilDone(); 42 window.testRunner.waitUntilDone();
43 43
44 window.scrollTo(0, 4000); 44 window.scrollTo(0, 4000);
45 runAfterLayoutAndPaint(runRepaintTest); 45 runAfterLayoutAndPaint(runRepaintTest);
46 </script> 46 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698