Created
April 5, 2018 17:46
-
-
Save nolanlawson/2586f3200d97adaaa350c87eb6fb907c to your computer and use it in GitHub Desktop.
-webkit-backdrop-filter repro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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