tor-browser

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

margin-collapse-vlr-023.xht (2191B)


      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: 'vertical-lr' and margin collapsing - absolute positioning and siblings</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/#logical-direction-layout" title="7.4 Flow-Relative Mappings" />
     11 
     12   <meta content="ahem image" name="flags" />
     13   <meta name="assert" content="This test checks that absolutely positioned boxes do not collapse margins with siblings in 'vertical-lr' writing-mode." />
     14 
     15   <!--
     16   left static position for the div#abs-pos could be determined with margin collapse
     17   or without margin collapse; so there are 2 possible rendered layouts for such code
     18   2015-01-18
     19 
     20   Test adapted and modified from
     21   http://test.csswg.org/suites/css2.1/nightly-unstable/html4/margin-collapse-012.htm
     22 
     23   "
     24   The margin collapsing rules apply exactly with the block-start margin substituted for the top margin and the block-end margin substituted for the bottom margin.
     25   "
     26   -->
     27   <link rel="match" href="reference/margin-collapse-022-023-1.xht" />
     28   <link rel="match" href="reference/margin-collapse-022-023-2.xht" />
     29 
     30   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     31   <style type="text/css"><![CDATA[
     32   div#test
     33     {
     34       border: teal solid 1em;
     35       font: 25px/1 Ahem;
     36       height: 4em; /* computes to 100px */
     37       margin-bottom: 0.2em; /* computes to 5px */
     38       writing-mode: vertical-lr;
     39     }
     40 
     41   div#wrapper
     42     {
     43       background-color: orange;
     44       border-left: blue solid 1em;
     45       width: 3em;
     46     }
     47 
     48   div#wrapper > div
     49     {
     50       height: 4em;
     51       margin-left: 1em;
     52     }
     53 
     54   div#abs-pos
     55     {
     56       background-color: blue;
     57       position: absolute;
     58       top: 33px;  /* body's margin + div#test's border-top */
     59       width: 1em;
     60     }
     61   ]]></style>
     62 
     63  </head>
     64 
     65  <body>
     66 
     67   <div id="test">
     68     <div id="wrapper">
     69       <div id="widthless-static"></div>
     70       <div id="abs-pos"></div>
     71     </div>
     72   </div>
     73 
     74  </body>
     75 </html>