tor-browser

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

background-position-applies-to-006e.xht (1899B)


      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-column'</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-column'." />
     15 
     16   <style type="text/css"><![CDATA[
     17   div#table {display: table;}
     18 
     19   div.col {display: table-column;}
     20 
     21   div#tested-col
     22   {
     23   background-image: url("/css/support/60x60-red.png");
     24   background-position: bottom right;
     25   background-repeat: no-repeat;
     26   display: table-column;
     27   }
     28 
     29   div#tbody {display: table-row-group;}
     30 
     31   div.tr {display: table-row;}
     32 
     33   div.td
     34   {
     35   display: table-cell;
     36   height: 60px;
     37   width: 60px;
     38   }
     39 
     40   div#overlapping-green
     41   {
     42   border-bottom: green solid 60px;
     43   display: table-cell;
     44   height: 60px;
     45   width: 60px;
     46   }
     47   ]]></style>
     48 
     49  </head>
     50 
     51  <body>
     52 
     53   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     54 
     55   <div id="table">
     56       <div class="col"></div><div id="tested-col"></div>
     57       <div id="tbody">
     58           <div class="tr">
     59               <div class="td"></div><div class="td"></div>
     60           </div>
     61           <div class="tr">
     62               <div class="td"></div><div id="overlapping-green"></div>
     63           </div>
     64       </div>
     65   </div>
     66 
     67  </body>
     68 </html>