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

Side by Side Diff: LayoutTests/compositing/overflow/nested-render-surfaces-with-intervening-clip.html

Issue 22620002: Add layout tests for universal overflow scrolling (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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 height: 2000px;
7 }
8
9 .container {
10 height: 300px;
11 width: 300px;
12 border: 4px solid black;
13 overflow-y: scroll;
14 resize: both;
15 }
16
17 .contents {
18 height: 1000px;
19 }
20
21 .box {
22 position: relative;
23 z-index: 1;
24 height: 100px;
25 width: 100px;
26 margin: 10px;
27 background-color: blue;
28 }
29
30 .surface {
31 opacity: 0.5;
32 }
33
34 .fixed {
35 position: fixed;
36 z-index: 0;
37 background-color: green;
38 left: 50px;
39 top: 200px;
40 height: 200px;
41 width: 200px;
42 }
43
44 .clipping-layer {
45 overflow: hidden;
46 width: 150px;
47 height: 300px;
48 }
49 </style>
50 <script>
51 function setup() {
52 if (!window.internals) {
53 var pre = document.createElement("pre");
54 pre.innerHTML = "This test ensures that clip children correctly "
55 + "ignore clips established by layers between the clip parent "
56 + "and itself. If the test is working correctly, the green "
57 + "box should be a square.";
58 document.body.appendChild(pre);
59 }
60 }
61 window.onload = setup;
62 </script>
63 </head>
64 <body>
65 <div class="clipping-layer">
66 <div class="surface">
67 <div class="box"></div>
68 <div class="container">
69 <div>
70 <div class="box"></div>
71 <div class="container">
72 <div class="fixed"></div>
73 <div class="box"></div>
74 <div class="box"></div>
75 <div class="box"></div>
76 <div class="box"></div>
77 <div class="box"></div>
78 </div>
79 </div>
80 </div>
81 </div>
82 </div>
83 </body>
84 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698