tor-browser

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

grid-floats-no-intrude-002.html (1500B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4 <title>CSS Grid Layout Test: floats do not protrude content onto grid items</title>
      5 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com">
      6 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-containers">
      7 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=430100">
      8 <link rel="match" href="grid-floats-no-intrude-002-ref.html">
      9 <link rel="stylesheet" href="/css/support/grid.css">
     10 <link rel="stylesheet" href="/css/support/width-keyword-classes.css">
     11 <meta name="assert" content="Test that a grid item sets a new formatting context for its content, preventing any 'float' protruding content on the adjoining grid item." />
     12 
     13 <style>
     14 .grid {
     15  grid-auto-columns: minmax(50px, max-content);
     16  grid-auto-rows: minmax(50px, max-content);
     17 }
     18 
     19 .floatChild {
     20  float: left;
     21  clear: both;
     22 }
     23 </style>
     24 </head>
     25 
     26 <body>
     27 
     28 <div>This test checks that grid item sets a new formatting context for its content, preventing any 'float' protruding content on the adjoining grid item ('Float' text shouldn't overflow the first row).</div>
     29 
     30 <div class="grid fit-content">
     31  <div class="firstRowFirstColumn">
     32    <div class="floatChild">Float</div>
     33    <div class="floatChild">Float</div>
     34    <div class="floatChild">Float</div>
     35    <div class="floatChild">Float</div>
     36  </div>
     37  <div class="firstRowSecondColumn"></div>
     38  <div class="secondRowFirstColumn"></div>
     39  <div class="secondRowSecondColumn"></div>
     40 </div>
     41 
     42 </body>
     43 </html>