tor-browser

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

fixed-inline-size-absolute-left-right.https.html (848B)


      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  position: relative;
      9  width: 120px;
     10 }
     11 
     12 .test {
     13  background: red;
     14  position: absolute;
     15  left: 0px;
     16  right: 20px;
     17 }
     18 
     19 @supports (display: layout(test)) {
     20  .test {
     21    background: green;
     22    display: layout(test);
     23  }
     24 }
     25 </style>
     26 <script src="/common/reftest-wait.js"></script>
     27 <script src="/common/worklet-reftest.js"></script>
     28 
     29 <div class="test"></div>
     30 
     31 <script>
     32 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/constraints-fixed-inline-size.js'});
     33 </script>