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

Side by Side Diff: LayoutTests/fast/repaint/relayout-fixed-position-after-scale.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 <html> 2 <html>
3 <head> 3 <head>
4 <title>This test is successful if fixed position elements re-layout correctly on page scale changes</title> 4 <title>This test is successful if fixed position elements re-layout correctly on page scale changes</title>
5 <style> 5 <style>
6 .fixed_size { 6 .fixed_size {
7 position:fixed; 7 position:fixed;
8 background-color:#ccffcc; 8 background-color:#ccffcc;
9 width:50px; 9 width:50px;
10 height:50px; 10 height:50px;
(...skipping 10 matching lines...) Expand all
21 <div class="fixed_size" style="left:10px;top:20px"></div> 21 <div class="fixed_size" style="left:10px;top:20px"></div>
22 <div class="fixed_size" style="right:30px;top:40px"></div> 22 <div class="fixed_size" style="right:30px;top:40px"></div>
23 <div class="fixed_size" style="left:50px;bottom:60px"></div> 23 <div class="fixed_size" style="left:50px;bottom:60px"></div>
24 <div class="fixed_size" style="right:70px;bottom:80px"></div> 24 <div class="fixed_size" style="right:70px;bottom:80px"></div>
25 <div class="percentage_size" style="left:40%;top:35%"></div> 25 <div class="percentage_size" style="left:40%;top:35%"></div>
26 <div class="percentage_size" style="right:30%;top:25%"></div> 26 <div class="percentage_size" style="right:30%;top:25%"></div>
27 <div class="percentage_size" style="left:20%;bottom:15%"></div> 27 <div class="percentage_size" style="left:20%;bottom:15%"></div>
28 <div class="percentage_size" style="right:10%;bottom:5%"></div> 28 <div class="percentage_size" style="right:10%;bottom:5%"></div>
29 <script> 29 <script>
30 function runTest() { 30 function runTest() {
31 if (window.internals) { 31 if (window.internals && window.eventSender) {
32 window.internals.settings.setFixedElementsLayoutRelativeToFrame(true); 32 window.internals.settings.setFixedElementsLayoutRelativeToFrame(true);
33 33
34 // Force scrollbar to hide and re-layout immediately. 34 // Force scrollbar to hide and re-layout immediately.
35 window.internals.setPageScaleFactor(0.1, 0, 0); 35 window.eventSender.setPageScaleFactor(0.1, 0, 0);
36 document.body.offsetTop; 36 document.body.offsetTop;
37 37
38 window.internals.setPageScaleFactor(0.5, 0, 0); 38 window.eventSender.setPageScaleFactor(0.5, 0, 0);
39 } 39 }
40 } 40 }
41 </script> 41 </script>
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/repaint/fixed-right-in-page-scale.html ('k') | LayoutTests/fast/repaint/scale-page-shrink.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698