tor-browser

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

mix-blend-mode-blended-with-transform-and-perspective.html (1477B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: blending between an element and its child having mix-blend-mode and perspective</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 and perspective blends correctly with its parent">
     11        <link rel="match" href="reference/mix-blend-mode-blended-with-transform-and-perspective-ref.html">
     12        <style type="text/css">
     13            div {
     14                height: 150px;
     15                width: 150px;
     16            }
     17            .container {
     18                position: relative;
     19                z-index: 1;
     20                background-color: lime;/*rgb(0,255,0);*/
     21            }
     22            .transformed {
     23                transform: perspective(600px) translateZ(-200px);
     24                background-color: red;/*rgb(255,0,0);*/
     25                mix-blend-mode: difference;
     26            }
     27        </style>
     28    </head>
     29    <body>
     30        <p>You should see a yellow square inside a green container.</p>
     31        <div class="container">
     32          <div class="transformed">
     33          </div>
     34        </div>
     35    </body>
     36 </html>