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

Side by Side Diff: LayoutTests/compositing/geometry/limit-layer-bounds-overflow-repaint.html

Issue 264013002: Allow layers that need squashing to draw into the squashing layer in some cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix comment. Created 6 years, 7 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
3 <html lang="en">
4 <head>
5 <style type="text/css" media="screen">
6 .container {
7 display: inline-block;
8 width: 200px;
9 height: 200px;
10 overflow: hidden;
11 margin: 10px;
12 border: 1px solid black;
13 }
14
15 .inner {
16 width: 100%;
17 height: 1000px;
18 background-color: blue;
19 }
20
21 .compositing {
22 position: absolute;
23 top: 20px;
24 left: 20px;
25 width: 100px;
26 height: 100px;
27 -webkit-transform: translateZ(0);
28 }
29
30 .top {
31 height: 50%;
32 width: 100%;
33 background-color: red;
34 }
35
36 .bottom {
37 height: 50%;
38 width: 100%;
39 background-color: green;
40 }
41 </style>
42 <script type="text/javascript" charset="utf-8">
43 if (window.testRunner)
44 testRunner.waitUntilDone();
45
46 function doTest()
47 {
48 window.setTimeout(function() {
49 var scrollables = document.querySelectorAll('.container');
50 for (var i = 0; i < scrollables.length; ++i)
51 scrollables[i].scrollTop = 500;
52
53 if (window.testRunner)
54 testRunner.notifyDone();
55
56 }, 0);
57 }
58
59 window.addEventListener('load', doTest, false);
60 </script>
61 </head>
62
63 <body>
64
65 <!-- Go into compositing. -->
66 <div class="compositing"></div>
67
68 <!-- Test repainting when the graphicsLayer offsetFromRenderer changes -->
69 <!-- You should see one green square, and no red -->
70 <div class="container" style="position: relative;">
71 <div class="inner" style="position: relative;">
72 <div class="top"></div>
73 <div class="bottom"></div>
74 </div>
75 </div>
76
77 </body>
78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698