summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/background-clip-text-translate.html
blob: 59f5e7a61e53f97307d5a7a3411da585858cda57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<meta charset="utf-8">

<style>
  body { overflow: hidden }
  p {
  margin: 1em 0;
  padding: 1.4em;
  font: 900 1.2em sans-serif;
  position:absolute;
  color: rgba(0,0,0,0);
}

.text {
  background: red;
  -webkit-background-clip: text;
  background-clip: text;
  transform: translate(-50%, -60%);
  transform-origin: center;
  left: 400px;
  }
</style>
<p class="text"></p>