tor-browser

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

percent-padding-vrl-006.xht (2398B)


      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: padding percentage and 'vertical-rl' (orthogonal flow)</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/#dimension-mapping" title="7.2 Dimensional Mapping" />
     11   <link rel="match" href="margin-vrl-002-ref.xht" />
     12 
     13   <meta content="image" name="flags" />
     14   <meta content="This test checks that percentages on the padding are calculated with respect to the height (inline-size) of the containing block if the 'writing-mode' of such containing block is 'vertical-rl'." name="assert" />
     15 
     16   <style type="text/css"><![CDATA[
     17   div.outer
     18     {
     19       background-color: blue;
     20       border-top: blue solid 3px;
     21       border-right: blue solid 3px;
     22       border-bottom: blue solid 2px;
     23       border-left: blue solid 3px;
     24       height: 160px;
     25       writing-mode: vertical-rl;
     26     }
     27 
     28   div.inner
     29     {
     30       background-color: transparent;
     31       height: 50px;
     32       writing-mode: horizontal-tb;
     33     }
     34 
     35   div.foo
     36     {
     37       padding-bottom: 0%; /* 0px */
     38       padding-left: 0%; /* 0px */
     39       padding-right: 31.25%; /* 31.25% mult by 160px == 50px */
     40       padding-top: 12.5%; /* 12.5% mult by 160px == 20px */
     41     }
     42 
     43   div.bar
     44     {
     45       padding-bottom: 0%; /* 0px */
     46       padding-left: 31.25%; /* 31.25% mult by 160px == 50px */
     47       padding-right: 0%; /* 0px */
     48       padding-top: 55.625%; /* 20px + 50px + 19px == 89px ; 89px divided by 160px == 55.625% */
     49     }
     50 
     51   div#reference
     52     {
     53       margin-top: 1em;
     54     }
     55   ]]></style>
     56  </head>
     57 
     58  <body>
     59 
     60   <p>Test passes if there are 2 <strong>identical</strong> blue rectangles, each with 2 small yellow squares: the layout must be identical.</p>
     61 
     62   <div class="outer">
     63     <div class="inner foo"><img src="support/swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled" /></div>
     64     <div class="inner bar"><img src="support/swatch-yellow.png" width="50" height="50" alt="Image download support must be enabled" /></div>
     65   </div>
     66 
     67   <div id="reference"><img src="support/blue-yellow-206w-165h.png" width="206" height="165" alt="Image download support must be enabled" /></div>
     68 
     69  </body>
     70 </html>