scale-page-shrink.html 603 B

123456789101112131415161718192021222324
  1. <html>
  2. <head>
  3. <style>
  4. ::-webkit-scrollbar {
  5. width: 0px;
  6. height: 0px;
  7. }
  8. </style>
  9. <script type="text/javascript">
  10. function runTest()
  11. {
  12. if (window.internals) {
  13. internals.setPageScaleFactorLimits(0.25, 0.25);
  14. internals.setPageScaleFactor(0.25);
  15. }
  16. }
  17. </script>
  18. </head>
  19. <body onload="runTest();" style="width: 4000px;">
  20. This test must be run in DumpRenderTree as a pixel test. There should not be visual aritfacts after scaling the page.
  21. <div style="width:500px; height:500px; background-color:green;"></div>
  22. </body>
  23. </html>