summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-masking/clip-path/clip-path-svg-text-backdrop-filter.html
blob: 68d462ab802fcc5be1280b797d972cfc515b6205 (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
<!doctype html>
<link rel="help" href="http://www.w3.org/TR/css-masking-1/#the-clip-path">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match" href="clip-path-svg-text-backdrop-filter-ref.html">
<meta name="fuzzy" content="0-1;0-200">
<meta name="flags" content="ahem">
<link rel="stylesheet" href="/fonts/ahem.css" />
<style>
.masked {
  width: 500px;
  height: 300px;
  clip-path: url(#svgPath);
  backdrop-filter: invert(100%);
  background: transparent;
}
#svgText {
  font: 100px/1 Ahem;
}
</style>
<div class="masked"></div>
<svg>
  <clipPath id="svgPath">
    <text id="svgText" x="10" y="100">Text</text>
  </clipPath>
</svg>