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

Side by Side Diff: LayoutTests/compositing/overflow/reparented-unclipped-overlay-scrollbars-with-offset-from-renderer.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 <!--
3 This test ensures that the offset from renderer is correctly applied
4 to reparented overflow controls, even if they are unclipped.
5 -->
2 <style> 6 <style>
3 #scroller { 7 #scroller {
4 overflow: scroll; 8 overflow: scroll;
5 width: 300px; 9 width: 300px;
6 height: 300px; 10 height: 300px;
7 position: relative; 11 position: relative;
8 z-index: 0;
9 top: 10px; 12 top: 10px;
10 } 13 }
11 14
12 #fixed { 15 #fixed {
13 position: fixed; 16 position: fixed;
14 background: blue; 17 background: blue;
15 left: 90px; 18 left: 90px;
16 width: 10px; 19 width: 10px;
17 height: 10px; 20 height: 10px;
18 } 21 }
19 22
20 #scrolled { 23 #scrolled {
21 position: relative; 24 position: relative;
22 background: green; 25 background: green;
23 width: 80px; 26 width: 80px;
24 height: 500px; 27 height: 500px;
25 } 28 }
26 </style> 29 </style>
27 <script> 30 <script>
28 if (window.internals) { 31 if (window.internals) {
29 window.internals.settings.setOverlayScrollbarsEnabled(true); 32 window.internals.settings.setOverlayScrollbarsEnabled(true);
30 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled( true); 33 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnabled( true);
31 } 34 }
32 </script> 35 </script>
33 <div id='scroller'> 36 <div id='scroller'>
34 <div id='fixed'></div> 37 <div id='fixed'></div>
35 <div id='scrolled'></div> 38 <div id='scrolled'></div>
36 </div> 39 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698