OLD | NEW |
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> |
OLD | NEW |