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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint.html

Issue 2747333006: Modify paint/invalidation/compositing/scrolling-neg-z-index-descendants-should-cause-repaint-expect… (Closed)
Patch Set: Rebase Created 3 years, 9 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 <script src="../resources/text-based-repaint.js"></script>
3 <script>
4 if (window.internals)
5 window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
6
7 function repaintTest() {
8 container.scrollTop = 100;
9 }
10
11 onload = runRepaintAndPixelTest;
12 </script>
13 <style>
14 ::-webkit-scrollbar {
15 width: 0;
16 height: 0;
17 }
18
19 #container {
20 width: 100px;
21 height: 300px;
22 border: 1px black solid;
23 overflow: scroll;
24 position: relative;
25 backface-visibility: hidden;
26 }
27
28 #neg-z {
29 position: relative;
30 z-index: -1;
31 }
32
33 .scrolled {
34 width: 50px;
35 height: 50px;
36 margin: 10px;
37 position: relative;
38 background-color: green;
39 }
40 </style>
41 <div id="container">
42 <div id="neg-z">
43 <div class="scrolled">1</div>
44 <div class="scrolled">2</div>
45 <div class="scrolled">3</div>
46 <div class="scrolled">4</div>
47 <div class="scrolled">5</div>
48 <div class="scrolled">6</div>
49 <div class="scrolled">7</div>
50 </div>
51 </div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698