tor-browser

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

clip-path-shape-009.html (992B)


      1 <!DOCTYPE html>
      2 <html>
      3 <head>
      4  <title>CSS Masking: Test clip-path property and shape function with content-box</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="Relative segments in the shape() function can use control points relative to the origin of the reference box.">
      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 by 200px 0 with 50% -50% from start / 50% 0 from origin,
     23                    curve by -200px 0 with 50% 100% from origin / -50% 50% from start,
     24                    close)
     25               content-box;
     26  }
     27 </style>
     28 <body>
     29  <div id="shape"></div>
     30 </body>
     31 </html>