summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/effect-reference-source-alpha-001.html
blob: 3bb76015eedd44c590376e80cfd282c2ce5b33a1 (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
<!DOCTYPE html>
<html>
<title>CSS Filters: feMergeNode with SourceAlpha</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#feMergeElement">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#attr-valuedef-in-sourcealpha">
<link rel="help" href="https://crbug.com/109224">
<link rel="match" href="reference/effect-reference-source-alpha-001-ref.html">
<meta name="assert" content="Check that SourceAlpha is correctly derived from SourceGraphic which is the output of the opacity(0) filter function which essentially sets all pixels to transparent."/>

<style>
div {
  position: absolute;
  width: 100px;
  height: 100px;
}
#test {
  background-color: red;
  filter: opacity(0) url(#f);
}
</style>
<div style="background-color: green"></div>
<div id="test">
<svg height="0">
  <filter id="f">
    <feMerge><feMergeNode in="SourceAlpha"></feMergeNode></feMerge>
  </filter>
</svg>
</div>