tor-browser

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

auto-margins-001-ref.html (1296B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <link rel="author" title="Google Inc." href="http://www.google.com/">
      5 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      6 <style>
      7 
      8 #circles, #circles div {
      9    border: 1em solid blue;
     10    border-radius:50%;
     11    margin: auto;
     12 }
     13 
     14 #circles { width:9em; height:9em; }
     15 
     16 </style>
     17 </head>
     18 <body>
     19 <p>These tests are from the spec: <a href="http://dev.w3.org/csswg/css3-flexbox/#auto-margins">http://dev.w3.org/csswg/css3-flexbox/#auto-margins</a>.</p>
     20 
     21 <p>The black rectangle should be centered vertically and horizontally.</p>
     22 <div style="width: 4em; height: 4em; background: silver">
     23  <table style="width: 100%; height: 100%;"><tr><td style="text-align: center; font-family: Ahem;">OK</td></tr></table>
     24 </div>
     25 
     26 <div style="width: 4em; height: 4em; margin-top: 10px; background: silver; writing-mode: vertical-rl">
     27  <table style="width: 100%; height: 100%;"><tr><td style="text-align: center; font-family: Ahem;">OK</td></tr></table>
     28 </div>
     29 
     30 <p>You should see 3 blue concentric circles.</p>
     31 <div id="circles">
     32  <div style="width: 5em; height: 5em; margin-top: 1em;">
     33    <div style="width: 1em; height: 1em; margin-top: 1em;"></div>
     34  </div>
     35 </div>
     36 
     37 <p>The computed style of each margin should not be 0.<br>OK: PASS<br>Vertical OK: PASS</p>
     38 </body>
     39 </html>