tor-browser

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

fixed-inline-size-flex-grow.https.html (809B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraints-fixedinlinesize">
      4 <link rel="match" href="fixed-inline-size-ref.html">
      5 <meta name="assert" content="This test checks that LayoutConstraints#fixedInlineSize is passed into the layout function correctly." />
      6 <style>
      7 body {
      8  display: flex;
      9  width: 100px;
     10 }
     11 
     12 .test {
     13  background: red;
     14  flex-grow: 1;
     15 }
     16 
     17 @supports (display: layout(test)) {
     18  .test {
     19    background: green;
     20    display: layout(test);
     21  }
     22 }
     23 </style>
     24 <script src="/common/reftest-wait.js"></script>
     25 <script src="/common/worklet-reftest.js"></script>
     26 
     27 <div class="test"></div>
     28 
     29 <script>
     30 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'});
     31 </script>