summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filter-svg-background-image-blur.html
blob: ab56d73c0547e923a034f9a7c431fe3b2ed51b6e (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
<!doctype html>
<meta charset="utf-8">
<title>Unsupported filter draws unfiltered frame</title>
<link rel="author" title="Mozilla" href="https://mozilla.org">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="help" href="https://drafts.fxtf.org/filter-effects/#FilterProperty">
<link rel="mismatch" href="/css/reference/blank.html">
<style>
div {
  width: 100px;
  height: 100px;
  border: 5px solid green;
  filter: url(#from-svg);
}
</style>
<div></div>
<svg>
  <defs>
    <filter id="from-svg">
      <feGaussianBlur in="BackgroundImage" stdDeviation="20" result="blur" />
      <feMerge>
        <feMergeNode in="SourceGraphic" />
        <feMergeNode in="blur" />
      </feMerge>
    </filter>
  </defs>
</svg>