tor-browser

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

mix-blend-mode-intermediate-element-overflow-hidden-and-border-radius.html (2035B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: mix-blend-mode between an element and its child having overflow:hidden and border-radius, when the blending element overlaps a sibling element</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 the element with mix-blend-mode, overflow:hidden and border-radius blends correctly with its parent, as well as with the sibling element where they overlap.">
     11        <meta name="fuzzy" content="0-10;0-50">
     12        <link rel="match" href="reference/mix-blend-mode-intermediate-element-overflow-hidden-and-border-radius-ref.html">
     13        <style type="text/css">
     14            .parent {
     15                background: aqua;/*rgb(0,255,255);*/
     16                width: 150px;
     17                height: 150px;
     18                position: relative;
     19                z-index: 1;
     20            }
     21            .blended {
     22                background: fuchsia;
     23                width: 150px;
     24                height: 75px;
     25                margin-top: -75px;
     26                mix-blend-mode: difference;
     27            }
     28            .siblingOfBlended {
     29                background: yellow;/*rgb(255,255,0);*/
     30                width: 150px;
     31                height: 150px;
     32                overflow: hidden;
     33                border-radius: 2em 2em;
     34            }
     35        </style>
     36    </head>
     37    <body>
     38        <p> This test passes if you can see a rectangle split in two pieces: the top half is yellow with aqua rounded borders and the bottom half is aqua with yellow borders.</p>
     39        <div class="parent">
     40            <div class="siblingOfBlended"></div>
     41            <div class="blended">
     42            </div>
     43        </div>
     44    </body>
     45 </html>