tor-browser

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

background-size-contain.xht (1291B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml">
      3   <head>
      4     <title>CSS Test Reference: background-size:contain</title>
      5     <link rel="author" title="Jeffrey Carl Faden" href="http://www.jeffreyatw.com/" />
      6     <style type="text/css">
      7       <![CDATA[
      8       div {
      9         background-color: red;
     10         height: 200px;
     11         width: 200px;
     12         position: relative;
     13         overflow: hidden;
     14       }
     15       div > img {
     16         height: 125px;
     17         width: 200px;
     18         position: absolute;
     19         left: 0;
     20       }
     21       div > img.first {
     22         top: 0;
     23       }
     24       div > img.second {
     25         top: 125px;
     26       }
     27       ]]>
     28     </style>
     29   </head>
     30   <body>
     31     <p><img src="support/rectangle-96x60.png" alt="Image download support must be enabled"/></p>
     32     <p>Test passes if the above image appears, scaled and repeating vertically, inside the below square.</p>
     33     <p>Test fails if any red area is seen outside of the image.</p>
     34     <div>
     35       <img src="support/rectangle-96x60.png" alt="Image download support must be enabled" class="first"/>
     36       <img src="support/rectangle-96x60.png" alt="Image download support must be enabled" class="second"/>
     37     </div>
     38   </body>
     39 </html>