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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/root-scroller/clipping-ancestor-is-non-composited-sibling.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 </style>
36
37 <script>
38 // This test passed if the output is a fully yellow screen. We expect that
39 // the "clipBox" boxes in this document and the iframe will have their
40 // clipping layers disabled/removed since the child #container element in the
41 // iframe is made to be the root scroller.
42 if (window.testRunner)
43 testRunner.dumpAsTextWithPixelResults();
44
45 window.addEventListener('load', function() {
46 document.rootScroller = document.getElementById('child');
47 });
48 </script>
49
50 <div class="clipBox">
51 <iframe id="child" src="resources/clipping-ancestor-is-non-composited-siblin g-iframe.html"></iframe>
52 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698