tor-browser

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

fixed-inline-size-block-auto-avoid-floats-vlr.https.html (892B)


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