tor-browser

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

margin-collapse-vrl-030.xht (1717B)


      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-rl' and margin collapsing - collapse through sibling</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   <link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
     12 
     13   <meta content="ahem image" name="flags" />
     14   <meta name="assert" content="This test checks that horizontal margins of boxes can collapse through a sibling box whose left and right margins collapse in 'vertical-rl' writing-mode." />
     15 
     16   <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
     17   <style type="text/css"><![CDATA[
     18   div
     19     {
     20       font: 25px/1em Ahem;
     21       height: 4em;
     22     }
     23 
     24   div#wrapper
     25     {
     26       background-image: url("support/margin-collapse-2em-space-wm-vert.png");
     27       writing-mode: vertical-rl;
     28     }
     29 
     30   div#right-most-sibling
     31     {
     32       background-color: green;
     33       margin-left: 2em;
     34       width: 1em;
     35     }
     36 
     37   div#middle-sibling
     38     {
     39       margin-left: 2em;
     40       margin-right: 2em;
     41     }
     42 
     43   div#left-most-sibling
     44     {
     45       background-color: green;
     46       margin-right: 2em;
     47       width: 1em;
     48     }
     49   ]]></style>
     50 
     51  </head>
     52 
     53  <body>
     54 
     55   <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     56 
     57   <div id="wrapper">
     58     <div id="right-most-sibling"></div>
     59     <div id="middle-sibling"></div>
     60     <div id="left-most-sibling"></div>
     61   </div>
     62 
     63  </body>
     64 </html>