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

Side by Side Diff: LayoutTests/compositing/overflow/ancestor-scroll-clipping-layer.html

Issue 22419002: Set up clip and scroll parents on the blink side. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 7 years, 3 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
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/ancestor-scroll-clipping-layer-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .containing-block {
6 position: relative;
7 -webkit-transform: translate(0px, 0px);
8 }
9
10 .clip {
11 overflow: hidden;
12 width: 50px;
13 height: 120px;
14 }
15
16 .overflow {
17 height: 100px;
18 width: 100px;
19 border: 1px solid black;
20 overflow-y: scroll;
21 resize: both;
22 margin: 10px;
23 }
24
25 .box {
26 position: relative;
27 z-index: 1;
28 height: 120px;
29 width: 80px;
30 margin: 10px;
31 background-color: blue;
32 }
33
34 .fixed {
35 position: fixed;
36 background-color: green;
37 width: 40px;
38 height: 40px;
39 top: -10px;
40 }
41
42 .beneath {
43 z-index: -1;
44 }
45 </style>
46 <script>
47 if (window.testRunner)
48 testRunner.dumpAsText();
49
50 if (window.internals) {
51 window.internals.settings.setCompositorDrivenAcceleratedScrollingEnabled (true);
52 window.internals.settings.setAcceleratedCompositingForOverflowScrollEnab led(true);
53 }
54
55 function setup() {
56 var pre = document.createElement("pre");
57 if (!window.internals) {
58 pre.innerHTML = "This test ensures that scroll and clip parent "
59 + "relationships are set up correctly and that the scroll "
60 + "children have a correctly positioned ancestor scroll "
61 + "clipping layer.";
62 } else {
63 pre.innerHTML = window.internals.layerTreeAsText(document);
64 }
65 document.body.appendChild(pre);
66 }
67
68 window.onload = setup;
69 </script>
70 </head>
71 <body>
72 <div class="containing-block">
73 <div class="overflow">
74 <div class="clip">
75 <div class="box fixed"></div>
76 <div class="box"></div>
77 </div>
78 </div>
79 </div>
80 <div class="containing-block">
81 <div class="overflow">
82 <div class="box fixed"></div>
83 <div class="box beneath"></div>
84 </div>
85 </div>
86 <div class="containing-block">
87 <div class="overflow">
88 <div class="box fixed"></div>
89 <div class="box"></div>
90 </div>
91 </div>
92 <div class="clip">
93 <div class="containing-block">
94 <div class="overflow">
95 <div class="box fixed"></div>
96 <div class="box"></div>
97 </div>
98 </div>
99 </div>
100 </body>
101 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/overflow/ancestor-scroll-clipping-layer-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698