summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/effect-reference-feimage-001.html
blob: 3a8fb36db92fb408c7011f44724bc8457da7ff37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<title>CSS Filters: feImage and CSS reference filters.</title>
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#feImageElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterProperty">
<link rel="match" href="reference/effect-reference-feimage-001-ref.html">
<meta name="assert" content="This test ensures that CSS reference filters supports feImage."/>
<style>
  #filtered {
    width: 160px;
    height: 90px;
    filter: url(#imagereplace);
  }
</style>
<div id="filtered"></div>
<svg width="0" height="0">
  <filter id="imagereplace" x="0%" y="0%" width="100%" height="100%">
     <feimage xlink:href="support/color-palette.png"/>
  </filter>
</svg>