tor-browser

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

gap-018.html (998B)


      1 <!DOCTYPE html>
      2 <title>Flex gaps</title>
      3 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#main-alignment">
      5 <link rel="help" href="https://drafts.csswg.org/css-align/#gaps">
      6 <meta name="assert" content="Button elements with display: flex but no items don't subtract column gap from intrinsic max size." />
      7 
      8 <script src="/resources/testharness.js"></script>
      9 <script src="/resources/testharnessreport.js"></script>
     10 <script src="/resources/check-layout-th.js"></script>
     11 
     12 <style>
     13 .button {
     14  display: flex;
     15  border: 0;
     16  padding: 0;
     17 
     18  padding-left: 100px;
     19  column-gap: 100px;
     20  width: max-width;
     21  height: 100px;
     22  background: green;
     23 }
     24 
     25 #reference-overlapped-red {
     26  position: absolute;
     27  background-color: red;
     28  width: 100px;
     29  height: 100px;
     30  z-index: -1;
     31 }
     32 </style>
     33 
     34 <div id=reference-overlapped-red></div>
     35 
     36 <button class=button data-expected-width=100></button>
     37 
     38 <script>
     39 checkLayout('.button');
     40 </script>