tor-browser

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

mix-blend-mode-parent-element-overflow-hidden-and-border-radius.html (1536B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: blending between an element having overflow:hidden and border-radius and its child</title>
      6        <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com">
      7        <link rel="author" title="Ion Roșca" href="mailto:rosca@adobe.com">
      8        <link rel="reviewer" title="Mihai Țică" href="mailto:mitica@adobe.com">
      9        <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode">
     10        <meta name="assert" content="Test checks that an element having mix-blend-mode blends with the parent element having overflow:hidden and border-radius">
     11        <meta name="fuzzy" content="0-128;0-400">
     12        <link rel="match" href="reference/mix-blend-mode-parent-element-overflow-hidden-and-border-radius-ref.html">
     13        <style type="text/css">
     14            .parent {
     15                background: red;
     16                width: 140px;
     17                height: 140px;
     18                position: relative;
     19                z-index: 1;
     20                overflow: hidden;
     21                border-radius: 1em 5em;
     22            }
     23            .blended {
     24                background: yellow;
     25                width: 200px;
     26                height: 200px;
     27                mix-blend-mode: difference;
     28            }
     29        </style>
     30    </head>
     31    <body>
     32        <p> Test passes if you see a lime square with rounded corners.</p>
     33        <div class="parent">
     34            <div class="blended"></div>
     35        </div>
     36    </body>
     37 </html>