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

Side by Side Diff: LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer-expected.html

Issue 397713004: Overlay scrollbars must respect ancestor clip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <style> 2 <style>
3 #scroller { 3 #scroller {
4 overflow: scroll; 4 overflow: scroll;
5 width: 300px; 5 width: 300px;
6 height: 300px; 6 height: 300px;
7 position: relative; 7 position: relative;
8 z-index: 0;
9 top: 10px; 8 top: 10px;
10 } 9 }
11 10
12 #fixed { 11 #fixed {
13 position: fixed; 12 position: fixed;
14 background: blue; 13 background: blue;
15 left: 90px; 14 left: 90px;
16 width: 10px; 15 width: 10px;
17 height: 10px; 16 height: 10px;
18 } 17 }
19 18
20 #scrolled { 19 #scrolled {
21 position: relative; 20 position: relative;
22 background: green; 21 background: green;
23 width: 80px; 22 width: 80px;
24 height: 500px; 23 height: 500px;
25 } 24 }
26 </style> 25 </style>
27 <script> 26 <script>
28 if (window.internals) { 27 if (window.internals) {
29 window.internals.settings.setOverlayScrollbarsEnabled(true); 28 window.internals.settings.setOverlayScrollbarsEnabled(true);
30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled( false); 29 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled( false);
31 } 30 }
32 </script> 31 </script>
33 <div id='scroller'> 32 <div id='scroller'>
34 <div id='fixed'></div> 33 <div id='fixed'></div>
35 <div id='scrolled'></div> 34 <div id='scrolled'></div>
36 </div> 35 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698