tor-browser

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

grid-baseline-003.html (1689B)


      1 <!DOCTYPE html>
      2 <title>CSS Grid: Grid container baseline</title>
      3 <link rel="author" title="Manuel Rego" href="mailto:rego@igalia.com">
      4 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-baselines">
      5 <link rel="help" href="https://drafts.csswg.org/css-align-3/#synthesize-baseline">
      6 <link rel="help" href="https://crbug.com/234191">
      7 <link rel="match" href="references/grid-baseline-003-ref.html">
      8 <meta name="assert" content="Check that grid container baseline should be synthesized from the border edges when it has no baseline."/>
      9 
     10 <link href="/css/support/grid.css" rel="stylesheet">
     11 <style>
     12 .inline-block { display: inline-block; }
     13 .grid, .inline-grid {
     14   background-color: lightgrey;
     15   grid-auto-flow: column;
     16 }
     17 .border { border: 11px solid pink; }
     18 .padding { padding: 13px; }
     19 .margin { margin: 8px 0; }
     20 </style>
     21 
     22 <div>
     23 Should align with the bottom
     24 <div class="inline-block border margin padding" style="background-color: pink">
     25  <div class="grid border margin padding" style="grid-template-columns: 100px; grid-template-rows: 100px; background-color: pink">
     26      <div style="overflow: scroll; background-color: lightgrey; margin: 10px 0px; border-top: 10px solid pink;"></div>
     27  </div>
     28 </div>
     29 of the horizontal scrollbar.
     30 </div>
     31 
     32 <div>
     33 Should align 10px below the
     34 <div class="inline-block" style="background-color: pink">
     35  <div class="grid" style="grid-template-columns: 100px; grid-template-rows: 100px; background-color: pink">
     36      <div style="overflow: scroll; padding-bottom: 10px; background-color: lightgrey; margin: 10px 0px; border-top: 10px solid pink; border-bottom: 10px solid pink;"></div>
     37  </div>
     38 </div>
     39 horizontal scrollbar, if one is visible.
     40 </div>