Skip to content

Instantly share code, notes, and snippets.

@nolanlawson
Created April 5, 2018 17:46
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nolanlawson/2586f3200d97adaaa350c87eb6fb907c to your computer and use it in GitHub Desktop.
Save nolanlawson/2586f3200d97adaaa350c87eb6fb907c to your computer and use it in GitHub Desktop.
-webkit-backdrop-filter repro
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<style>
.profile-grid-wrapper {
-webkit-backdrop-filter: blur(7px) saturate(110%);
backdrop-filter: blur(7px) saturate(110%);
background-color: rgba(255, 255, 255, 0.7);
}
.profile {
position: relative;
background-size: cover;
background-position: center;
padding-top: 175px;
}
body {
font-size: 14px;
line-height: 1.4;
color: #333;
background: #e8edfb;
max-width: 600px;
margin: 0 auto;
}
.profile-backdrop {
position: absolute;
left: 0px;
top: 0px;
bottom: 0px;
right: 0px;
z-index: 5;
}
.profile-grid {
padding: 20px;
justify-content: center;
z-index: 10;
position: relative;
}
button {
font-size: 1.2em;
background: #e6e6e6;
border-radius: 2px;
padding: 10px 15px;
border: 1px solid gray;
cursor: pointer;
color: black;
}
</style>
</head>
<body>
<div class="profile " style='background-color: crimson;'>
<div class="profile-grid-wrapper">
<div class="profile-backdrop"></div>
<div class="profile-grid">
<div class="profile-follow">
<button>
Hover me
</button>
</div>
</div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment