Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Masking: mask-image: mask layer image</title>
<link rel="author" title="Astley Chen" href="mailto:aschen@mozilla.com">
<style type="text/css">
div {
background-image: linear-gradient(rgba(128,0,128,0), rgba(128,0,128,1));
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div></div>
<div></div>
</body>
</html>