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

Side by Side Diff: LayoutTests/compositing/overflow/reparented-overlay-scrollbars-should-respect-ancestor-clip-expected.html

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

Powered by Google App Engine
This is Rietveld 408576698