tor-browser

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

fixed-block-size-vrl.https.html (1449B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#dom-layoutconstraintsoptions-fixedblocksize">
      4 <link rel="match" href="../green-square-ref.html">
      5 <meta name="assert" content="This test checks that fixing the block size of children works as expected." />
      6 
      7 <style>
      8 .test {
      9  writing-mode: vertical-rl;
     10  background: red;
     11  height: 100px;
     12 }
     13 
     14 .htb {
     15  writing-mode: horizontal-tb;
     16  visibility: hidden;
     17  width: 3px;
     18  height: 2px;
     19 
     20  --fixed-block-size: 10;
     21 
     22  --inline-size-expected: 2;
     23  --block-size-expected: 10;
     24 }
     25 
     26 .vrl {
     27  writing-mode: vertical-rl;
     28  visibility: hidden;
     29  width: 3px;
     30  height: 2px;
     31 
     32  --fixed-block-size: 10;
     33 
     34  --inline-size-expected: 2;
     35  --block-size-expected: 10;
     36 }
     37 
     38 @supports (display: layout(test)) {
     39  .test {
     40    background: green;
     41    display: layout(test);
     42  }
     43 }
     44 </style>
     45 <script src="/common/reftest-wait.js"></script>
     46 <script src="/common/worklet-reftest.js"></script>
     47 
     48 <div class="test">
     49  <div class="htb"></div>
     50  <div class="vrl"></div>
     51  <!-- min/max-width should have no effect, fixedBlockSize wins. -->
     52  <div class="htb" style="max-width: 5px;"></div>
     53  <div class="vrl" style="max-width: 5px;"></div>
     54  <div class="htb" style="min-width: 15px;"></div>
     55  <div class="vrl" style="min-width: 15px;"></div>
     56 </div>
     57 
     58 <script>
     59 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-sizes-worklet.js'});
     60 </script>