tor-browser

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

mix-blend-mode-sibling-with-3D-transform.html (2053B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: blending between an element and its sibling element having 3D transform</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 with mix-blend-mode blends with both parent element and with sibling element having 3D transform">
     11        <link rel="match" href="reference/mix-blend-mode-sibling-with-3D-transform-ref.html">
     12        <style type="text/css">
     13            .parent {
     14                background: aqua;/*rgb(0,255,255);*/
     15                width: 140px;
     16                height: 140px;
     17                padding-top: 1px;
     18                position: relative;
     19                z-index: 1;
     20            }
     21            .blended {
     22                background: fuchsia;/*rgb(255,0,255);*/
     23                margin-top: -200px;
     24                margin-left: 20px;
     25                width: 200px;
     26                height: 200px;
     27                mix-blend-mode: difference;
     28            }
     29            .siblingOfBlended {
     30                background: red;/*rgb(255,0,0);*/
     31                margin-top: 20px;
     32                margin-left: 20px;
     33                width: 200px;
     34                height: 200px;
     35                transform: perspective(600px) translateZ(-200px);
     36            }
     37        </style>
     38    </head>
     39    <body>
     40        <p>You should see three overlapping squares, from back to front, having the following colors: aqua, fuchsia and blue. <br>
     41        The intersection area between aqua and fuchsia squares, which is not overlapped by the blue square, should be yellow.</p>
     42        <div class="parent">
     43            <div class="siblingOfBlended"></div>
     44            <div class="blended"></div>
     45        </div>
     46    </body>
     47 </html>