tor-browser

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

float-shrink-to-fit-vrl-004.xht (1604B)


      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 Writing Modes Test:  'float' and 'shrink-to-fit' logical width in 'vertical-rl' context</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/css-writing-modes-3/#vertical-layout" title="7.1 Principles of Layout in Vertical Writing Modes" />
     11   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     12 
     13   <meta content="ahem" name="flags" />
     14   <meta content="This test checks that 'shrink-to-fit' width is applied on logical width (measure)." name="assert" />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   div.floated-left
     19     {
     20       background-color: red;
     21       float: left;
     22       font: 100px/1 Ahem; /* computes to 100px/100px */
     23       writing-mode: vertical-rl;
     24     }
     25 
     26   div.left-border
     27     {
     28       border-left: red solid 1em;
     29     }
     30 
     31   div.right-border
     32     {
     33       border-right: red solid 1em;
     34     }
     35 
     36   div#reference-overlapped-green
     37     {
     38       background-color: green;
     39       height: 100px;
     40       position: relative;
     41       width: 100px;
     42       z-index: -1;
     43     }
     44   ]]></style>
     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 class="floated-left">
     52     <div class="left-border right-border"></div>
     53   </div>
     54 
     55   <div id="reference-overlapped-green"></div>
     56 
     57  </body>
     58 </html>