tor-browser

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

clip-path-shape-002-units.html (1058B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>CSS Masking: Test clip-path property and shape function with evenodd fill</title>
      5  <link rel="help" href="https://drafts.csswg.org/css-shapes-2/#funcdef-shape">
      6  <link rel="match" href="reference/clip-path-path-002-ref.html">
      7  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
      8  <meta name="assert" content="The clip-path property takes the basic shape
      9 'shape()' for clipping. Test evenodd path function. On pass you should
     10 see a green hollow square.">
     11 </head>
     12 <style>
     13  * {
     14    font-size: 16px;
     15  }
     16 
     17  html {
     18    font-size: 10px;
     19    --v50: 50px;
     20  }
     21 
     22  #rect {
     23    width: 100px;
     24    height: 100px;
     25    font-size: 5px;
     26    font-family: Ahem;
     27    background-color: green;
     28    clip-path: shape(evenodd from 10px 2ch,
     29                     hline by 80px, vline by 80%, hline by -8rem, close,
     30                     move to 25% 25px, hline by 10em, vline by var(--v50), hline by -50%);
     31  }
     32 </style>
     33 <body>
     34  <p>The test passes if there are a green hollow rect.</p>
     35  <div id="rect"></div>
     36 </body>
     37 </html>