blob: c498020dd5127571ccca385fb96e704d4ba919fa [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
body {
overflow: hidden;
height: 1000px;
}
.box {
width: 100px;
height: 100px;
background-color: blue;
}
.background-fixed {
background-image: linear-gradient(blue, green);
background-size: 100% 100px;
background-attachment: fixed;
}
</style>
</head>
<body>
<div class="background-fixed box">
</div>
</body>
</html>