tor-browser

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

justify-content-007.html (1101B)


      1 <!DOCTYPE html>
      2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      3 <link rel="help"
      4  href="https://drafts.csswg.org/css-flexbox/#justify-content-property">
      5 <link rel="help" href="https://crbug.com/1228023">
      6 <meta name="assert"
      7  content="Wrapped item obeys justify-content:center when the item wraps because the container has max-height.">
      8 
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script src="/resources/check-layout-th.js"></script>
     12 
     13 <style>
     14  .flexitem {
     15    width: 100px;
     16  }
     17 
     18 </style>
     19 
     20 Pass condition: orange square is vertically centered in the black box.<br>
     21 Chrome 112 and Safari 16.4 fail. Firefox 111 passes.
     22 <div
     23  style="display: flex; flex-flow: column wrap; max-height: 200px; justify-content: center; align-content: start; border: 2px solid; position: relative;">
     24  <div class=flexitem style="background: blue; height: 200px;"></div>
     25  <div class=flexitem style="background: orange; height: 100px;"
     26    data-offset-y=50></div>
     27 </div>
     28 
     29 <script>
     30  checkLayout('.flexitem + .flexitem');
     31 </script>