tor-browser

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

text-01.https.html (1209B)


      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 text children are correctly blockified." />
      6 
      7 <style>
      8 /* We have a wrapper in this test to ensure that any text that is positioned
      9 * slightly outside the "test" box doesn't affect the rendering.
     10 * This wrapper has a 10px inline padding which does the trick. */
     11 .wrapper {
     12  background: green;
     13  padding: 0 10px;
     14  width: 80px;
     15 }
     16 
     17 .test {
     18  --child-expected: ["default", "2", "default"];
     19 
     20  background: red;
     21  color: green;
     22  width: 80px;
     23  --child: default;
     24 }
     25 
     26 .inflow {
     27  visibility: hidden;
     28  --child: 2;
     29 }
     30 
     31 @supports (display: layout(test)) {
     32  .test {
     33    background: green;
     34    display: layout(test);
     35  }
     36 }
     37 </style>
     38 <script src="/common/reftest-wait.js"></script>
     39 <script src="/common/worklet-reftest.js"></script>
     40 
     41 <div class="wrapper">
     42  <div class="test">
     43    Text text text
     44    <div class="inflow"></div>
     45    Text text text
     46  </div>
     47 </div>
     48 
     49 <script>
     50 importWorkletAndTerminateTestAfterAsyncPaint(CSS.layoutWorklet, {url: 'support/layout-child-worklet.js'});
     51 </script>