tor-browser

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

clip-path-shape-007.html (965B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>CSS Masking: Test clip-path property and shape function endpoint-relative control points</title>
      5  <link rel="help" href="https://drafts.csswg.org/css-shapes-2/#funcdef-shape">
      6  <link rel="match" href="reference/clip-path-shape-control-points-ref.html">
      7  <meta name="assert" content="Absolute segments in the shape() function can use control points with <position> values">
      8 </head>
      9 <style>
     10  body {
     11    margin: 0;
     12  }
     13  #shape {
     14    width: 240px;
     15    height: 240px;
     16    padding: 10px;
     17    border: 10px solid red;
     18    box-sizing: border-box;
     19    background-color: green;
     20    /* The size of the content-box is 200x200. */
     21    clip-path: shape(from center left,
     22                    curve to center right with center top / center top,
     23                    curve to center left with center bottom / center bottom,
     24                    close)
     25               content-box;
     26  }
     27 </style>
     28 <body>
     29  <div id="shape"></div>
     30 </body>
     31 </html>