tor-browser

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

text-indent-012.xht (2223B)


      1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
      2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
      3  <head>
      4   <title>CSS Test: CSS text-indent: Hyatt's Evil Test Which Mixes Lots Of Stuff</title>
      5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/>
      6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-28 -->
      7   <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/block/text-indent/002.html" type="text/html"/>
      8   <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#indentation-prop" />
      9   <link rel="help" href="https://drafts.csswg.org/css-text-3/#text-indent-property"/>
     10   <link rel="match" href="text-indent-012-ref.xht" />
     11 
     12   <meta name="flags" content="ahem" />
     13 
     14   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     15   <style type="text/css">
     16    .control { background-color: yellow; position: absolute; top: 75px; height: 60px; width: 200px; border: 2px solid black; }
     17    .control .a { background-color: orange; position: absolute; width: 50px; height: 50px; }
     18    .control .b { background-color: orange; position: absolute; left: 150px; width: 50px; height: 50px; }
     19    .test { background-color: yellow; text-indent: 100px; position: absolute; top: 175px; border: 2px solid black; font: 50px/1 Ahem; }
     20    .test .a { background-color: orange; width: 50px; height: 50px; float: left; }
     21    .test .b { background-color: orange; display: inline-block; width: 50px; height: 50px; }
     22   </style>
     23  </head>
     24  <body>
     25   <p>The following two blocks should be identical.</p>
     26   <div class="control">
     27    <div class="a"></div>
     28    <div class="b"></div>
     29   </div>
     30   <div class="test"> <!-- this should shrink wrap to the intrinsic, no-line-wrapping width -->
     31    <div class="a"></div> <!-- that's a float. -->
     32    <div class="b"></div> <!-- that's an inline-block. it should be text-indented 100px from the left edge of the float. -->
     33    <!-- the inline-block should sit on top of the baseline, which should be 0.2em from the bottom of the
     34         block, since the Ahem font has a 0.2em descender. font-size is 50px, so 0.2em is 10px. -->
     35   </div>
     36  </body>
     37 </html>