wpt / css / filter-effects / backdrop-filter-edge-behavior.html

Status: FAIL | Duration: 12ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/filter-effects/backdrop-filter-edge-behavior.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Edge behavior</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="help" href="https://crbug.com/1165868">
<link rel="match"  href="backdrop-filter-edge-behavior-ref.html">

<div>
  <p>Expected: The black box inside the red box should contain some red, despite being outside of the scroller's clip</p>
</div>

<div id=scroller>
  <div class=filler></div>
  <div id=backdrop></div>
  <div class=filler></div>
</div>

<style>
  html {
    overflow: hidden;
  }
  #scroller {
    width: 250px;
    height: 250px;
    overflow: scroll;
    scrollbar-width: none;
    border: 6px solid red;
    scrollbar-width: none;
  }
  #scroller::-webkit-scrollbar {
    width: 0px;
  }
  #backdrop {
    height: 200px;
    width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid black;
  }
  .filler {
    position: relative;
    left: 50px;
    width: 100px;
    height: 100px;
  }
</style>

<script>
  scroller.scrollTop = 103;
</script>

/css/filter-effects/backdrop-filter-edge-behavior-ref.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Edge behavior</title>
<link rel="author" href="mailto:masonf@chromium.org">

<div>
  <p>Expected: The black box inside the red box should contain some red, despite being outside of the scroller's clip</p>
</div>

<div id=scroller>
  <div id=backdrop></div>
</div>
<div id=scroller class=second></div>

<style>
  html {
    scrollbar-width: none;
    overflow: hidden;
  }
  #scroller {
    width: 250px;
    height: 250px;
    border: 6px solid red;
  }
  #backdrop {
    position: relative;
    top: -3px;
    height: 200px;
    width: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid black;
  }
  .second {
    position: relative;
    top: -262px;
  }
</style>