tor-browser

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

float.https.html (903B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#layout-children">
      4 <link rel="match" href="../green-square-ref.html">
      5 <meta name="assert" content="This test checks that float children appear in the children array." />
      6 
      7 <style>
      8 .test {
      9  --child-expected: ["1", "2"];
     10 
     11  background: red;
     12  width: 100px;
     13 }
     14 
     15 .float {
     16  float: right;
     17  visibility: hidden;
     18  --child: 1;
     19 }
     20 
     21 .inflow {
     22  visibility: hidden;
     23  --child: 2;
     24 }
     25 
     26 @supports (display: layout(test)) {
     27  .test {
     28    background: green;
     29    display: layout(test);
     30  }
     31 }
     32 </style>
     33 <script src="/common/reftest-wait.js"></script>
     34 <script src="/common/worklet-reftest.js"></script>
     35 
     36 <div class="test">
     37  <div class="float"></div>
     38  <div class="inflow"></div>
     39 </div>
     40 
     41 <script>
     42 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-worklet.js'});
     43 </script>