tor-browser

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

background-position-applies-to-003e.xht (1778B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      2 
      3 <html xmlns="http://www.w3.org/1999/xhtml">
      4 
      5  <head>
      6 
      7   <title>CSS Test: Background-position applied to elements with 'display' set to 'table-footer-group'</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="help" href="http://www.w3.org/TR/CSS21/colors.html#background-properties" title="14.2.1 Background properties: 'background-color', 'background-image', 'background-repeat', 'background-attachment', 'background-position', and 'background'" />
     11   <link rel="match" href="background-position-applies-to-001e-ref.xht" />
     12 
     13   <meta name="flags" content="image" />
     14   <meta name="assert" content="The 'background-position' property applies to elements with 'display' set to 'table-footer-group'." />
     15 
     16   <style type="text/css"><![CDATA[
     17   div#table {display: table;}
     18 
     19   div#tfoot
     20   {
     21   background-image: url("/css/support/60x60-red.png");
     22   background-position: bottom right;
     23   background-repeat: no-repeat;
     24   display: table-footer-group;
     25   }
     26 
     27   div.tr {display: table-row;}
     28 
     29   div.td
     30   {
     31   display: table-cell;
     32   height: 60px;
     33   width: 60px;
     34   }
     35 
     36   div#overlapping-green
     37   {
     38   border-bottom: green solid 60px;
     39   display: table-cell;
     40   height: 60px;
     41   width: 60px;
     42   }
     43   ]]></style>
     44 
     45  </head>
     46 
     47  <body>
     48 
     49   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     50 
     51   <div id="table">
     52       <div id="tfoot">
     53           <div class="tr">
     54               <div class="td"></div><div class="td"></div>
     55           </div>
     56           <div class="tr">
     57               <div class="td"></div><div id="overlapping-green"></div>
     58           </div>
     59       </div>
     60   </div>
     61 
     62  </body>
     63 </html>