summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filters/css-filters/hue-rotate-multichannel.html
blob: d6e9650c7a9eb0572a424f6a0845b0d42adb72e1 (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
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE html>
<html>
<head>
  <title>CSS Filters: Hue Rotate an HTML Element Containing Colors with Multiple RGB Channels</title>
  <link rel="author" title="Max Vujovic" href="mailto:mvujovic@adobe.com">
  <style type="text/css">
    #target {
      filter: hue-rotate(90deg);
      width: 150px;
      height: 150px;
    }
    .color-strip {
      height: 50px;
    }
    #color-strip-1 {
      background-color: rgb(255, 128, 64);
    }
    #color-strip-2 {
      background-color: rgb(128, 255, 64);
    }
    #color-strip-3 {
      background-color: rgb(32, 64, 255);
    }
  </style>
</head>
<body>
  <p>You should see a horizontal green strip, followed by a cyan strip, followed by a magenta strip.</p>
  <div id="target">
    <div id="color-strip-1" class="color-strip"></div>
    <div id="color-strip-2" class="color-strip"></div>
    <div id="color-strip-3" class="color-strip"></div>
  </div>
</body>
</html>