tor-browser

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

contain-layout-grid-001.html (816B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Containment Test: Layout containment on grid container</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-layout">
      6 <link rel="match" href="reference/contain-layout-grid-001-ref.html">
      7 <meta name=assert content="Layout containment does apply to grid containers, thus their baseline is the same than if they don't have contents.">
      8 <style>
      9 div {
     10  display: inline-grid;
     11  border: 5px solid green;
     12  contain: layout;
     13  color: transparent;
     14  width: 0;
     15  height: 0;
     16 }
     17 </style>
     18 
     19 <p>This test passes if it has the same output as the reference. You see the word "before", a 10px green square at the bottom, and then the word "after".</p>
     20 before<div>g</div>after