tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

background-tiling-zoom-1.html (2834B)


      1 <!DOCTYPE HTML>
      2 <!-- Any copyright is dedicated to the Public Domain.
      3   - http://creativecommons.org/publicdomain/zero/1.0/ -->
      4 <html reftest-zoom="1.3">
      5 <head>
      6 <title>Pixel rounding testcase</title>
      7 <style type="text/css">
      8 
      9  html, body {
     10    margin: 0;
     11    border: none;
     12    padding: 0;
     13  }
     14 
     15  div {
     16    border: 1px solid black;
     17    margin: 5px;
     18    position: absolute
     19  }
     20 
     21  /* For these tests we use images containing two colors, even though only one
     22    color will be visible, to avoid special single-color-image code paths. */
     23  div.horizontal {
     24    background-image: url(lime-and-blue-1x25.png);
     25    height: 10px;
     26    left: 0px;
     27  }
     28 
     29  div.vertical {
     30    background-image: url(lime-and-blue-25x1.png);
     31    top: 120px;
     32    width: 10px;
     33  }
     34 
     35  /* For these tests we use images containing only one color to ensure that we
     36     hit the special single-color-image code paths. */
     37  div.horizontal-single-color {
     38    background-image: url(lime-1x25.png);
     39    height: 10px;
     40    left: 40px;
     41  }
     42 
     43  div.vertical-single-color {
     44    background-image: url(lime-25x1.png);
     45    top: 160px;
     46    width: 10px;
     47  }
     48 
     49 </style>
     50 </head>
     51 <body>
     52 
     53 <div class="horizontal" style="top: 0px; width: 30px"></div>
     54 <div class="horizontal" style="top: 20px; width: 30.1px"></div>
     55 <div class="horizontal" style="top: 40px; width: 30.3px"></div>
     56 <div class="horizontal" style="top: 60px; width: 30.5px"></div>
     57 <div class="horizontal" style="top: 80px; width: 30.7px"></div>
     58 <div class="horizontal" style="top: 100px; width: 30.9px"></div>
     59 
     60 <div class="horizontal-single-color" style="top: 0px; width: 30px"></div>
     61 <div class="horizontal-single-color" style="top: 20px; width: 30.1px"></div>
     62 <div class="horizontal-single-color" style="top: 40px; width: 30.3px"></div>
     63 <div class="horizontal-single-color" style="top: 60px; width: 30.5px"></div>
     64 <div class="horizontal-single-color" style="top: 80px; width: 30.7px"></div>
     65 <div class="horizontal-single-color" style="top: 100px; width: 30.9px"></div>
     66 
     67 <div class="vertical" style="left: 0px; height: 30px"></div>
     68 <div class="vertical" style="left: 20px; height: 30.1px"></div>
     69 <div class="vertical" style="left: 40px; height: 30.3px"></div>
     70 <div class="vertical" style="left: 60px; height: 30.5px"></div>
     71 <div class="vertical" style="left: 80px; height: 30.7px"></div>
     72 <div class="vertical" style="left: 100px; height: 30.9px"></div>
     73 
     74 <div class="vertical-single-color" style="left: 0px; height: 30px"></div>
     75 <div class="vertical-single-color" style="left: 20px; height: 30.1px"></div>
     76 <div class="vertical-single-color" style="left: 40px; height: 30.3px"></div>
     77 <div class="vertical-single-color" style="left: 60px; height: 30.5px"></div>
     78 <div class="vertical-single-color" style="left: 80px; height: 30.7px"></div>
     79 <div class="vertical-single-color" style="left: 100px; height: 30.9px"></div>
     80 
     81 </body>
     82 </html>