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

Side by Side Diff: LayoutTests/fast/css/sticky/sticky-top-zoomed-expected.html

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 years, 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 body { 6 body {
7 margin: 0; 7 margin: 0;
8 height: 2000px; 8 height: 2000px;
9 } 9 }
10 10
(...skipping 30 matching lines...) Expand all
41 position: absolute; 41 position: absolute;
42 top: 0; 42 top: 0;
43 left: 0; 43 left: 0;
44 background-color: red; 44 background-color: red;
45 } 45 }
46 </style> 46 </style>
47 <script> 47 <script>
48 function doTest() 48 function doTest()
49 { 49 {
50 if (window.eventSender) 50 if (window.eventSender)
51 eventSender.scalePageBy(1.5); 51 eventSender.setPageScaleFactor(1.5);
52 } 52 }
53 window.addEventListener('load', doTest, false); 53 window.addEventListener('load', doTest, false);
54 </script> 54 </script>
55 </head> 55 </head>
56 <body> 56 <body>
57 <div class="group" style="top: -100px"> 57 <div class="group" style="top: -100px">
58 <div class="indicator box" style="top: 150px;"></div> 58 <div class="indicator box" style="top: 150px;"></div>
59 <div class="container"> 59 <div class="container">
60 <div class="sticky box"></div> 60 <div class="sticky box"></div>
61 </div> 61 </div>
62 </div> 62 </div>
63 63
64 <div class="group" style="top: 0"> 64 <div class="group" style="top: 0">
65 <div class="indicator box" style="top: 75px;"></div> 65 <div class="indicator box" style="top: 75px;"></div>
66 <div class="container"> 66 <div class="container">
67 <div class="sticky box"></div> 67 <div class="sticky box"></div>
68 </div> 68 </div>
69 </div> 69 </div>
70 70
71 <div class="group" style="top: 100px"> 71 <div class="group" style="top: 100px">
72 <div class="indicator box" style="top: 0;"></div> 72 <div class="indicator box" style="top: 0;"></div>
73 <div class="container"> 73 <div class="container">
74 <div class="sticky box"></div> 74 <div class="sticky box"></div>
75 </div> 75 </div>
76 </div> 76 </div>
77 </body> 77 </body>
78 </html> 78 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/sticky/sticky-top-zoomed.html ('k') | LayoutTests/fast/dom/Element/scale-page-bounding-client-rect.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698