tor-browser

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

ortho-htb-alongside-vrl-floats-006.xht (2857B)


      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-006-ref.xht" />
     13 
     14   <!--
     15   The 'horizontal-tb' equivalent of this test is
     16   http://www.gtalbot.org/BugzillaSection/Bug1283721-new-block-form-ctxt-alongside-floats-005.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: in this test, this is the blue rectangle." 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   div
     31     {
     32       width: 100px;
     33     }
     34 
     35   div#tall-fuchsia-float
     36     {
     37       background-color: fuchsia;
     38       float: left;
     39       height: 75%;
     40     }
     41 
     42   div#second-blue-float
     43     {
     44       background-color: blue;
     45       clear: left;
     46       float: left;
     47       height: 25%;
     48     }
     49 
     50   div#third-olive-float-with-clear
     51     {
     52       background-color: olive;
     53       clear: left;
     54       float: left;
     55       height: 50%;
     56     }
     57 
     58   div#fourth-fuchsia-float-with-clear
     59     {
     60       background-color: fuchsia;
     61       clear: left;
     62       float: left;
     63       height: 75%;
     64     }
     65 
     66   div#orange-horiz-tb
     67     {
     68       background-color: orange;
     69       height: 50%;
     70       writing-mode: horizontal-tb;
     71     }
     72   ]]></style>
     73 
     74  </head>
     75 
     76  <body>
     77 
     78   <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>
     79 
     80   <!--
     81   The image says:
     82   Test passes if the orange rectangle
     83   is below the blue rectangle.
     84   -->
     85 
     86   <div id="tall-fuchsia-float">&nbsp;</div>
     87 
     88   <div id="second-blue-float">&nbsp;</div>
     89 
     90   <div id="third-olive-float-with-clear">&nbsp;</div>
     91 
     92   <div id="fourth-fuchsia-float-with-clear">&nbsp;</div>
     93 
     94   <div id="orange-horiz-tb">&nbsp;</div>
     95 
     96  </body>
     97 </html>