I ran into the problem of applying blur on the background of absolute / fixed elements, because it does not seem to blur the main content of the page, but only the contents of the absolute element itself. I currently have a style for my warning:
.alert-wrap { position: fixed; z-index: 10; right: 0; bottom: 0; } .alert-wrap .alert { display: block; background-color: rgba(215, 44, 44, 0.5); margin: 0 15px 15px 0; position: relative; } .alert-wrap .alert:before { content: ""; position: absolute; height: 100%; width: 100%; top: 0; bottom: 0; left: 0; right: 0; -webkit-filter: blur(10px); -moz-filter: blur(10px); -o-filter: blur(10px); -ms-filter: blur(10px); filter: blur(10px); }
I want this to blur the background of the warning element, making the main content behind it look blurry (with more focus on the element itself), but I could not find anything, even confirming that this problem exists at all.
The HTML text stream is as follows:
<html> <head> </head> <body> <div class='alert-wrap'> <div class='alert'> <div class='head'> Notifications </div> <div class='body'> Alert content here </div> </div> </div> <?php <div class='content'> Some content here </div> <?php </body> </html>
Image example:

source share