79150597

Date: 2024-11-02 11:57:25
Score: 2.5
Natty:
Report link

Thinking about the negative margin suggestion by @G-Cyrillus made me come up with a possible solution using a wrapper. I wouldn't call it perfect but maybe it's as good as it gets?

.box {
  top: 10px;
  left: 10px;
  position: absolute;
  border: 5px solid red;
  width: 50px;
  height: 50px;
}

.outer {
  top: 10px;
  left: 10px;
  position: absolute;
  width: 100px;
  height: 100px;
  overflow: hidden;
  border: 1px solid;
}

.blur {
  top: -10px;
  left: -10px;
  position: absolute;
  backdrop-filter: blur(10px);
  width: 110px;
  height: 110px;
}
<div class="box">
</div>

<div class="outer">
  <div class="blur">
  </div>
</div>

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • User mentioned (1): @G-Cyrillus
  • Self-answer (0.5):
  • Looks like a comment (1):
  • High reputation (-1):
Posted by: Daniel