tor-browser

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

float-shrink-to-fit-vlr-007.xht (1746B)


      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-lr' 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-lr;
     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.left-padding
     37     {
     38       padding-left: 1em;
     39     }
     40 
     41   div.right-padding
     42     {
     43       padding-right: 1em;
     44     }
     45 
     46   div#reference-overlapped-green
     47     {
     48       background-color: green;
     49       height: 100px;
     50       position: relative;
     51       width: 100px;
     52       z-index: -1;
     53     }
     54   ]]></style>
     55  </head>
     56 
     57  <body>
     58 
     59   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     60 
     61   <div class="floated-left">
     62     <div class="left-border right-border left-padding right-padding"></div>
     63   </div>
     64 
     65   <div id="reference-overlapped-green"></div>
     66 
     67  </body>
     68 </html>