summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/compositing/mix-blend-mode/mix-blend-mode-blending-with-sibling.html
blob: 80f197c40bcc4b07e60074afd1e6eb5389631052 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>CSS Test: mix-blend-mode between an element and its sibling</title>
        <link rel="author" title="Mirela Budăeș" href="mailto:mbudaes@adobe.com">
        <link rel="author" title="Mihai Tica" href="mailto:mitica@adobe.com">
        <link rel="reviewer" title="Mihai Balan" href="mailto:mibalan@adobe.com">
        <link rel="help" href="https://drafts.fxtf.org/compositing-1/#mix-blend-mode">
        <meta name="assert" content="Test checks that an element with mix-blend-mode blends with a sibling element">
        <link rel="match" href="reference/green-square.html">
        <style type="text/css">
            div {
                width: 100px;
                height: 100px;
            }
            .container {
                position: fixed;
                z-index: 0;
                background: #FFF;
            }
            .blender {
                background: #FF0;
                mix-blend-mode: difference;
            }
            .sibling {
                margin-top: -100px;
                background: #F00;
            }
        </style>
    </head>
    <body>
        <p>Test passes if you can see a green square on the screen.</p>
        <div class="container">
            <div class="blender"></div>
            <div class="sibling"></div>
        </div>
    </body>
</html>