tor-browser

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

mix-blend-mode-blended-element-overflow-scroll.html (1611B)


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