tor-browser

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

clip-path-inline-001.html (997B)


      1 <!DOCTYPE html>
      2 <title>clip-path on inline, horizontal-tb writing-mode</title>
      3 <link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
      4 <link rel="help" href="https://www.w3.org/TR/css-masking-1/#the-clip-path" title="5.1 Clipping Shape: the clip-path property">
      5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      6 <meta content="ahem" name="flags">
      7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      8 <style>
      9  body {
     10    overflow: hidden;
     11  }
     12  .container {
     13    writing-mode: horizontal-tb;
     14    padding: 70px 30px;
     15    margin: -170px -230px;
     16    font: 100px/1 Ahem;
     17    line-height: 100px;
     18    color: transparent;
     19  }
     20  .container > span {
     21    clip-path: polygon(0% 0%, 50% 0%, 50% 100%, 0% 100%);
     22    color: red;
     23  }
     24  .container > span > span {
     25    color: green;
     26  }
     27 </style>
     28 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     29 <div class="container">
     30  <br>
     31  XX<span><span>X</span>X<br>XXXXX</span>
     32 </div>