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

Side by Side Diff: LayoutTests/compositing/layer-creation/resources/fixed-position-nonscrollable-body.html

Issue 13828004: Avoid compositing fixed-position elements if they cannot scroll (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased and addressed feedback Created 7 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>
4 <head>
5 <style>
6 .fixed {
7 position: fixed;
8 z-index: 1;
9 }
10
11 .absolute {
12 position: absolute;
13 }
14
15 .unscrollable {
16 overflow-x: hidden;
17 overflow-y: hidden;
18 }
19
20 .box {
21 top: 10px;
22 left: 10px;
23 width: 100px;
24 height: 100px;
25 }
26
27 .red {
28 background-color: red;
29 }
30
31 .lime {
32 background-color: lime;
33 }
34
35 .composited {
36 -webkit-transform: translatez(0);
37 }
38 </style>
39 </head>
40
41 <body class="unscrollable">
42 <div style="height: 4000px">
43 <!-- This iframe should have no additional layers, because the body is unscr ollable and there is
44 no need to composite the green fixed-position layer. -->
45 <pre id="layertree"></pre>
46 </div>
47
48 <!-- This should not be composited -->
49 <div class="fixed lime box"></div>
50 </body>
51 </html>
52
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698