tor-browser

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

error.https.html (1167B)


      1 <!DOCTYPE html>
      2 <html class=reftest-wait>
      3 <link rel="help" href="https://drafts.css-houdini.org/css-layout-api/#invoke-an-intrinsic-sizes-callback">
      4 <link rel="match" href="fallback-ref.html">
      5 <meta name="assert" content="This test checks that a layout() class with a throwing intrinsicSizes function will fallback to block layout." />
      6 <style>
      7 .test {
      8  background: red;
      9  border: solid 2px;
     10  width: min-content;
     11 }
     12 
     13 .float {
     14  float: left;
     15  height: 100px;
     16  width: 50%;
     17 }
     18 
     19 .fc {
     20  display: flow-root;
     21  height: 100px;
     22 }
     23 
     24 @supports (display: layout(throwing-intrinsic-sizes)) {
     25  .test {
     26    display: layout(throwing-intrinsic-sizes);
     27    background: green;
     28  }
     29 }
     30 </style>
     31 <script src="/common/reftest-wait.js"></script>
     32 <script src="/common/worklet-reftest.js"></script>
     33 
     34 <div class="test">
     35  <div class="float"></div>
     36  <div class="fc"></div>
     37 </div>
     38 
     39 <script id="code" type="text/worklet">
     40 registerLayout('throwing-intrinsic-sizes', class {
     41  async intrinsicSizes() { throw Error('fail!'); }
     42  async layout() {}
     43 });
     44 </script>
     45 
     46 <script>
     47 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, document.getElementById('code').textContent);
     48 </script>
     49 </html>