tor-browser

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

padding-top-036.xht (1710B)


      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: Padding-top using centimeters with a minimum plus one value, 1cm</title>
      5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
      6         <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-08-25 -->
      7         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#propdef-padding-top" />
      8         <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#padding-properties" />
      9         <meta name="assert" content="The 'padding-top' property handles a minimum plus one length value in centimeters." />
     10         <style type="text/css">
     11             div
     12             {
     13                 width: 50px;
     14             }
     15             .parent1
     16             {
     17                 background: red;
     18                 min-height: 37px
     19             }
     20             .test1, .test2
     21             {
     22                 padding-top: 1cm;
     23             }
     24             .test1
     25             {
     26                 background: green;
     27             }
     28             .test2
     29             {
     30                 background: red;
     31             }
     32             .child1
     33             {
     34                 background: green;
     35                 height: 38px;
     36                 margin-top: -1cm;
     37             }
     38         </style>
     39     </head>
     40     <body>
     41         <p>Test passes if there is <strong>no red</strong>.</p>
     42         <div class="parent1">
     43             <div class="test1"></div>
     44         </div>
     45         <br />
     46         <div class="test2">
     47             <div class="child1"></div>
     48         </div>
     49     </body>
     50 </html>