summaryrefslogtreecommitdiffstats
path: root/layout/reftests/backgrounds/text-clip-and-stroke.html
blob: 224c27773cc67205abe2ae4c6501bc83b45725f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<style>
	p {
          margin: 1em 0;
          padding: 1.4em;
          background: linear-gradient(60deg, red, yellow, red, yellow, red);
          font: 900 1.2em sans-serif;
          text-decoration: underline;
          -webkit-background-clip: text;
          -webkit-text-stroke: 2px transparent;
          color: rgba(0,0,0,.2);
        }
      </style>

<p>The background is clipped to the foreground text.</p>