tor-browser

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

text-box-trim-multicol-013.html (1452B)


      1 <!DOCTYPE html>
      2 <title>Test text-box-trim on multicol with column spanner</title>
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim">
      5 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/11363#issuecomment-2578257911">
      6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      7 <script src="/resources/testharness.js"></script>
      8 <script src="/resources/testharnessreport.js"></script>
      9 <script src="/resources/check-layout-th.js"></script>
     10 <style>
     11  .multicol {
     12    columns: 3;
     13    text-box-trim: trim-both;
     14    font: 5px/10px Ahem;
     15    margin: 10px;
     16    orphans: 1;
     17    widows: 1;
     18    background: #ddd;
     19  }
     20 </style>
     21 <div class="multicol" data-expected-height="5">
     22  <div style="column-span:all;">x</div>
     23 </div>
     24 <div class="multicol" data-expected-height="15">
     25  <div style="column-span:all;">x</div>
     26  <div style="column-span:all;">x</div>
     27 </div>
     28 <div class="multicol" data-expected-height="25">
     29  <div style="column-span:all;">x</div>
     30  x
     31  <div style="column-span:all;">x</div>
     32 </div>
     33 <div class="multicol" data-expected-height="35">
     34  x
     35  <div style="column-span:all;">x</div>
     36  x
     37  <div style="column-span:all;">x</div>
     38 </div>
     39 <div class="multicol" data-expected-height="45">
     40  x
     41  <div style="column-span:all;">x</div>
     42  x
     43  <div style="column-span:all;">x</div>
     44  x
     45 </div>
     46 <script>
     47  checkLayout(".multicol");
     48 </script>