tor-browser

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

multicol-dynamic-change-inside-break-inside-avoid-001.html (1144B)


      1 <!DOCTYPE html>
      2 <html class="tweak reftest-wait">
      3 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      4 <link rel="author" title="Mozilla" href="https://mozilla.org">
      5 <link rel="help" href="https://drafts.csswg.org/css-break/#break-within">
      6 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1721262">
      7 <link rel="match" href="multicol-dynamic-change-inside-break-inside-avoid-001-ref.html">
      8 <style>
      9  input { -moz-appearance: none; -webkit-appearance: none; appearance: none; }
     10 
     11  .tweak input {
     12    border: 3px solid red;
     13  }
     14 </style>
     15 <div style="column-count: 2">
     16  a<br>
     17  <input>
     18 
     19  <div style="page-break-inside: avoid; break-inside: avoid;">
     20    b
     21    <div><input id="editme" value="."></div>
     22  </div>
     23 </div>
     24 <script>
     25 function paint() {
     26  return new Promise(resolve => {
     27    requestAnimationFrame(() => requestAnimationFrame(resolve));
     28  });
     29 }
     30 
     31 (async function() {
     32  await paint();
     33 
     34  document.documentElement.classList.remove("tweak");
     35 
     36  await paint();
     37 
     38  document.getElementById("editme").value = "Am I clipped?";
     39  document.documentElement.classList.remove("reftest-wait");
     40 })();
     41 </script>