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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html

Issue 2327223002: Move all remaining fast/repaint tests to paint/invalidation (Closed)
Patch Set: 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 <html>
2 <head>
3 <style>
4 ::-webkit-scrollbar {
5 width: 0px;
6 height: 0px;
7 }
8 </style>
9 <script src="../../resources/js-test.js"></script>
10 <script>
11 window.enablePixelTesting = true;
12
13 function scroll() {
14 // Scrolls so that unscaled content is out of view
15 window.scrollTo(100,100);
16 }
17
18 function applyScaleFactor() {
19 var scaleFactor = 2.0;
20 if (window.internals)
21 internals.setPageScaleFactor(scaleFactor);
22 }
23
24 function test() {
25 if (window.internals)
26 internals.settings.setScrollAnimatorEnabled(false);
27
28 // Scroll before applying page scale so we scroll the layout viewport.
29 scroll();
30 applyScaleFactor();
31 }
32 </script>
33 </head>
34 <body style="height:2000px; width: 2000px; margin:0px;" onload="test();">
35 <div style="position: fixed; top: -100px; right: 500px; z-index: 1">
36 <div style="left:0; top:0; width:100px; height:100px; position:absolute; background:yellow;"></div>
37 <div style="left:100px; top:0; width:100px; height:100px; position:absol ute; background:green;"></div>
38
39 <div style="left:0; top:100px; width:100px; height:100px; position:absol ute; background:black;"></div>
40 <div style="left:100px; top:100px; width:100px; height:100px; position:a bsolute; background:blue;"></div>
41 </div>
42 <div style="position: absolute; width:300px; height:300px; top: 0px; left: 3 00px" id="grid">
43 <div style="float:left; width:100px; height:100px; background:yellow;">< /div>
44 <div style="float:left; width:100px; height:100px; background:green;"></ div>
45 <div style="float:left; width:100px; height:100px; background:blue;"></d iv>
46
47 <div style="float:left; width:100px; height:100px; background: green;">< /div>
48 <div style="float:left; width:100px; height:100px; background:blue;"></d iv>
49 <div style="float:left; width:100px; height:100px; background:yellow;">< /div>
50
51 <div style="float:left; width:100px; height:100px; background:blue;"></d iv>
52 <div style="float:left; width:100px; height:100px; background:yellow;">< /div>
53 <div style="float:left; width:100px; height:100px; background:green;"></ div>
54 </div>
55 <div id="console"></div>
56 </body>
57 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698