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-scroll.html (1366B)


      1 <!DOCTYPE html>
      2 <html>
      3    <head>
      4        <meta charset="utf-8">
      5        <title>CSS Test: blending between an element with overflow:scroll 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 with mix-blend-mode blends its parent having overflow:scroll">
     11        <link rel="match" href="reference/mix-blend-mode-parent-element-overflow-scroll-ref.html">
     12        <style type="text/css">
     13            .parent {
     14                background: yellow;
     15                width: 140px;
     16                height: 140px;
     17                position: relative;
     18                z-index: 1;
     19                overflow:scroll;
     20            }
     21            .blended {
     22                background: red;
     23                width: 200px;
     24                height: 200px;
     25                mix-blend-mode: difference;
     26            }
     27        </style>
     28    </head>
     29    <body>
     30        <p>Test passes if you see a scrollable lime rectangle.</p>
     31        <div class="parent">
     32            <div class="blended"></div>
     33        </div>
     34    </body>
     35 </html>