tor-browser

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

reference-local-url-with-base-001.html (877B)


      1 <!DOCTYPE html>
      2 <title>CSS Masking: clip path with local URL using a base element</title>
      3 <link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
      4 <link rel="help" href="https://drafts.fxtf.org/css-masking-1/#the-clip-path">
      5 <link rel="help" href="https://drafts.csswg.org/css-values/#local-urls">
      6 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=470608">
      7 <link rel="match" href="reference/reference-local-url-with-base-001-ref.html">
      8 <meta name="assert" content="Check that fragment-only URLs are always document-local references.">
      9 
     10 <base href="http://www.example.com/">
     11 <style>
     12 #target {
     13  width: 100px;
     14  height: 100px;
     15  border-right: 100px solid red;
     16  background-color: green;
     17  clip-path: url(#clip);
     18 }
     19 </style>
     20 <div id="target"></div>
     21 <svg>
     22  <clipPath id="clip">
     23    <rect width="100" height="100"/>
     24  </clipPath>
     25 </svg>