tor-browser

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

multicol-gap-decorations-018.html (1578B)


      1 <!DOCTYPE html>
      2 <title>
      3    CSS Gap Decorations: Multicolumn gap decorations that are added later are painted.
      4 </title>
      5 <link rel="help" href="https://drafts.csswg.org/css-gaps-1/">
      6 <link rel="match" href="multicol-gap-decorations-018-ref.html">
      7 <link rel="author" title="Javier Contreras" href="mailto:javiercon@microsoft.com">
      8 <style>
      9    body {
     10        margin: 0px;
     11    }
     12 
     13    .container {
     14        border: 2px solid rgb(96 139 168);
     15        width: 200px;
     16        height: 130px;
     17        column-count: 3;
     18        column-width: 60px;
     19        column-height: 60px;
     20        column-gap: 10px;
     21        row-gap: 10px;
     22        column-wrap: wrap;
     23    }
     24 
     25    p {
     26        background: rgb(96 139 168 / 0.2);
     27        height: 60px;
     28        margin: 0px;
     29    }
     30 </style>
     31 <script>
     32    function setup() {
     33        const button = document.getElementById('btn');
     34        button.click();
     35    }
     36 
     37    function setDecorations() {
     38        const container = document.querySelector('.container');
     39        if (container) {
     40            container.style.columnRuleStyle = 'solid';
     41            container.style.columnRuleWidth = '10px';
     42            container.style.columnRuleColor = 'blue';
     43            container.style.rowRuleStyle = 'solid';
     44            container.style.rowRuleWidth = '10px';
     45            container.style.rowRuleColor = 'gold';
     46        }
     47    }
     48 </script>
     49 
     50 <body onload="setup()">
     51    <div class="container">
     52        <p></p>
     53        <p></p>
     54        <p></p>
     55        <p></p>
     56        <p></p>
     57        <p></p>
     58    </div>
     59    <button onclick="setDecorations()" id="btn">Set decorations</button>
     60 </body>