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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/root-scroller/basic-disable-ancestor-clipping.html

Issue 2289833002: Disable clipping on root scroller's ancestors. (Closed)
Patch Set: Also setNeedsCompositingUpdate from TopDocumentRootScrollerController Created 4 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 ::-webkit-scrollbar {
4 width: 0px;
5 height: 0px;
6 }
7
8 body, html {
9 width: 100%;
10 height: 100%;
11 background-color: blue;
12 }
13
14 body {
15 margin: 0px;
16 }
17
18 iframe {
19 width: 100vw;
20 height: 100vh;
21 left: -50px;
22 top: -50px;
23 position: absolute;
24 border: 0;
25 }
26
27 .clipBox {
28 position: absolute;
29 overflow: hidden;
30 left: 50px;
31 right: 50px;
32 top: 50px;
33 bottom: 50px;
34 }
35
36 .compositedClipBox {
37 position: absolute;
38 overflow: hidden;
39 left: 50px;
40 right: 50px;
41 top: 50px;
42 bottom: 50px;
43 background-color: red;
44 transform: translateZ(0);
45 }
46
47 #scroller {
48 position: absolute;
49 left: -100px;
50 right: -100px;
51 top: -100px;
52 bottom: -100px;
53 background-color: yellow;
54 overflow: auto;
55 transform: translateZ(0);
56 }
57
58 .spacer {
59 height: 1000px;
60 }
61 </style>
62
63 <script>
64 // This test passed if the output is a fully yellow screen. We expect that
65 // the "clipBox" boxes in this document will have their clipping layers
66 // disabled/removed since the child #scroller element in the is the root
67 // scroller.
68 if (window.testRunner)
69 testRunner.dumpAsTextWithPixelResults();
70
71 window.addEventListener('load', function() {
72 document.rootScroller = document.getElementById('scroller');
73 });
74 </script>
75
76 <div class="compositedClipBox">
77 <div class="clipBox">
78 <div id="scroller">
79 <div class="spacer"></div>
80 </div>
81 </div>
82 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698