tor-browser

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

grid-float-002.html (1991B)


      1 <!DOCTYPE html>
      2 <html>
      3 <title>CSS Grid Layout Test: 'float' and 'clear' have no effect on a grid item.</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-containers"/>
      6 <link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=79180"/>
      7 <link href="/css/support/grid.css" rel="stylesheet"/>
      8 <link href="/css/support/alignment.css" rel="stylesheet"/>
      9 <meta name="assert" content="This test ensures that the grid's items are not affected by the 'float' and 'clear' properties."/>
     10 
     11 <script src="/resources/testharness.js"></script>
     12 <script src="/resources/testharnessreport.js"></script>
     13 <script src="/resources/check-layout-th.js"></script>
     14 <style>
     15 .container {
     16  background-color:grey;
     17 }
     18 
     19 .gridItem {
     20  width: 50px;
     21  height: 50px;
     22 }
     23 </style>
     24 <body onload="checkLayout('.container')">
     25 
     26 <div style="position: relative">
     27  <div class="container grid justifyContentStart">
     28    <div style="float: right;" class="gridItem firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></div>
     29    <div class="gridItem firstRowFirstColumn" data-offset-x="0" data-offset-y="0" data-expected-width="50" data-expected-height="50"></div>
     30    <div style="float: left;" class="gridItem firstRowSecondColumn" data-offset-x="50" data-offset-y="0" data-expected-width="50" data-expected-height="50"></div>
     31    <div style="float: left;" class="gridItem secondRowFirstColumn" data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expected-height="50"></div>
     32    <div style="clear: both;" class="gridItem secondRowFirstColumn" data-offset-x="0" data-offset-y="50" data-expected-width="50" data-expected-height="50"></div>
     33    <div style="float: left;" class="gridItem secondRowSecondColumn" data-offset-x="50" data-offset-y="50" data-expected-width="50" data-expected-height="50"></div>
     34  </div>
     35 </div>
     36 
     37 </body>
     38 </html>