tor-browser

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

ortho-htb-alongside-vrl-floats-014.xht (2917B)


      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: positioning of an orthogonal (horizontal-tb) block alongside vertical-rl floats</title>
      8 
      9   <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" />
     10   <link rel="bookmark" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1283721" title="Bug 1283721: Incorrect positioning of orthogonal (horizontal-tb) block alongside vertical-rl floats" />
     11   <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" />
     12   <link rel="match" href="ortho-htb-alongside-vrl-floats-014-ref.xht" />
     13 
     14   <!--
     15   The 'horizontal-tb' equivalent of this test is
     16   http://www.gtalbot.org/BugzillaSection/Bug1283721-ortho-htb-alongside-vrl-floats-007htb.html
     17   -->
     18 
     19   <meta content="image" name="flags" />
     20   <meta content="This test checks that non-positioned block boxes created after the float box flow vertically as if the float did not exist. In this test, the orange block box, which creates a new block formatting context, should flow next to the earliest float that offers sufficient (logical width) space." name="assert" />
     21   <meta name="DC.date.created" content="2016-07-04T09:54:03+11:00" scheme="W3CDTF" />
     22   <meta name="DC.date.modified" content="2016-07-21T09:54:03+11:00" scheme="W3CDTF" />
     23 
     24   <style type="text/css"><![CDATA[
     25   html
     26     {
     27       writing-mode: vertical-rl;
     28     }
     29 
     30   /*
     31     minimum used height of the document root element is 176px;
     32     less than 176px will make the reference file no longer reliable.
     33 
     34        36px : image intrinsic height
     35      +
     36         4px : descender space below baseline
     37      =========
     38        40px : 1st table with 'height: 25%'
     39     multiplied by
     40         4
     41      =========
     42       160px : height of the 3 tables
     43     +
     44         8px : body's margin-top
     45     +
     46         8px : body's margin-bottom
     47      =========
     48       176px
     49   */
     50 
     51   div
     52     {
     53       width: 100px;
     54     }
     55 
     56   div#first-blue-float
     57     {
     58       background-color: olive;
     59       float: left;
     60       height: 50%;
     61     }
     62 
     63   div#second-olive-float-with-clear
     64     {
     65       background-color: blue;
     66       clear: left;
     67       float: left;
     68       height: 25%;
     69     }
     70 
     71   div#orange-horiz-tb
     72     {
     73       background-color: orange;
     74       height: 75%;
     75       writing-mode: horizontal-tb;
     76     }
     77   ]]></style>
     78 
     79  </head>
     80 
     81  <body>
     82 
     83   <p><img src="support/ortho-htb-alongside-vrl-floats-002-exp-res.png" width="300" height="36" alt="Image download support must be enabled" /></p>
     84 
     85   <!--
     86   The image says:
     87   Test passes if the orange rectangle
     88   is below the blue rectangle.
     89   -->
     90 
     91   <div id="first-blue-float">&nbsp;</div>
     92 
     93   <div id="second-olive-float-with-clear">&nbsp;</div>
     94 
     95   <div id="orange-horiz-tb">&nbsp;</div>
     96 
     97  </body>
     98 </html>