一部のテキストに純粋なCSS3グラデーション(画像などなし)を適用しようとしていますが、テキストは変更されていません。
私の現在のコードは次のとおりです。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Text Gradients</title>
<style>
/* The gradient class */
.gradient {
-webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,255,244,1)), color-stop(100%,rgba(233,233,206,1)));
}
</style>
</head>
<body>
<!--The text with the gradient-->
<h1 class="gradient"> Hello World </h1>
</body>
</html>