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-blended-position-fixed.html (1746B)


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