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

Side by Side Diff: LayoutTests/compositing/squashing/squash-overflow-hidden-contents.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 <style type="text/css" media="screen">
3 .container {
4 display: inline-block;
5 width: 200px;
6 height: 200px;
7 overflow: hidden;
8 margin: 10px;
9 border: 1px solid black;
10 }
11
12 .inner {
13 width: 100%;
14 height: 1000px;
15 background-color: blue;
16 }
17
18 .compositing {
19 position: absolute;
20 top: 20px;
21 left: 20px;
22 width: 100px;
23 height: 100px;
24 -webkit-transform: translateZ(0);
25 }
26 </style>
27 <script type="text/javascript" charset="utf-8">
28 if (window.internals)
29 window.internals.settings.setLayerSquashingEnabled(true);
30 </script>
31 <!-- Go into compositing. -->
32 <div class="compositing"></div>
33
34 <!-- Test repainting when the graphicsLayer offsetFromRenderer changes -->
35 <!-- You should see one green square, and no red -->
36 <div class="container" style="position: relative;">
37 <div class="inner" style="position: relative;">
38 </div>
39 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698