summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/621253-helper-internalFilter.xhtml
blob: 7625a16a38cc43986e24ea0434e4581929b19f26 (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
<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<body style="margin: 0px">
  <svg xmlns="http://www.w3.org/2000/svg" style="display: block; height: 0px">
    <defs>
      <!-- Copied verbatim from layout/reftests/filters.svg: -->
      <filter id="NonWhiteToBlack" x="0%" y="0%" width="100%" height="100%">
        <feComponentTransfer>
          <feFuncR type="linear" slope="-1" intercept="1" />
          <feFuncG type="linear" slope="-1" intercept="1" />
          <feFuncB type="linear" slope="-1" intercept="1" />
        </feComponentTransfer>
        <feColorMatrix type="matrix" values="255 255 255 0 0
                                             255 255 255 0 0
                                             255 255 255 0 0
                                             0 0 0 1 0" />
        <feComponentTransfer>
          <feFuncR type="linear" slope="-1" intercept="1" />
          <feFuncG type="linear" slope="-1" intercept="1" />
          <feFuncB type="linear" slope="-1" intercept="1" />
        </feComponentTransfer>
      </filter>
    </defs>
  </svg>
  <div style="filter: url(#NonWhiteToBlack);
              background: lime;
              height: 100px; width: 100px">
  </div>
</body>
</html>