tor-browser

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

caption-position-001.xht (1491B)


      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: caption-side - CSS caption boxes can be positioned above or below a CSS table-cell</title>
      8 
      9   <!--
     10   Inspired by http://www.w3.org/Style/Examples/007/figures#top-caption
     11   -->
     12 
     13   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     14   <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#model" title="17.4 Tables in the visual formatting model" />
     15   <link rel="match" href="caption-position-001-ref.xht" />
     16 
     17   <meta content="image" name="flags" />
     18 
     19   <style type="text/css"><![CDATA[
     20   div
     21   {
     22   border: black solid medium;
     23   padding: 1em;
     24   margin-top: 1em;
     25   width: 98px;
     26   }
     27 
     28   p.table-cell {display: table-cell;}
     29 
     30   p.caption-side-top
     31   {
     32   caption-side: top;
     33   display: table-caption;
     34   }
     35 
     36   p.caption-side-bottom
     37   {
     38   caption-side: bottom;
     39   display: table-caption;
     40   }
     41   ]]></style>
     42 
     43  </head>
     44 
     45  <body>
     46 
     47   <p>Test passes if the word ABOVE is above the cat image in both rectangles.</p>
     48 
     49   <div>
     50    <p class="table-cell"><img src="support/cat.png" alt="Image download support must be enabled" /></p>
     51 
     52    <p class="caption-side-top">ABOVE</p>
     53   </div>
     54 
     55   <div>
     56    <p class="caption-side-bottom"><img src="support/cat.png" alt="Image download support must be enabled" /></p>
     57 
     58    <p class="table-cell">ABOVE</p>
     59   </div>
     60 
     61  </body>
     62 </html>