summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/backdrop-filters-hue-rotate-ref.html
blob: 177872cc90271580524d11631bb582f8f02604a1 (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
<!DOCTYPE html>
<title>CSS Backdrop Filters Animation: Hue Rotate</title>
<link rel="author" href="mailto:masonf@chromium.org">


<style>
    .square {
        position: absolute;
        width: 100px;
        height: 100px;
        top: 100px;
        left: 100px;
        background: blue;
        filter: hue-rotate(45deg);
    }
    .filt {
        position: absolute;
        width: 200px;
        height: 200px;
        top: 50px;
        left: 50px;
        background: white;
        filter: hue-rotate(45deg);
    }
    .greenbox {
        position: absolute;
        width: 50px;
        height: 50px;
        top: 125px;
        left: 125px;
        background: green;
    }
</style>
<p>You should see a violet rectangle with a green box. Neither red nor blue.</p>
<div class="filt"></div>
<div class="square"></div>
<div class="greenbox"></div>