wpt / css / filter-effects / backdrop-filter-edge-pixels-2.html

Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/filter-effects/backdrop-filter-edge-pixels-2.html

<!DOCTYPE html>
<meta name=fuzzy content="maxDifference=0-28;totalPixels=0-30000">
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="author" href="mailto:flackr@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<link rel="match"  href="reference/backdrop-filter-edge-pixels-2-ref.html">

<div class="red_square"></div>
<div class="filter"></div>

<style>
div {
  width: 100px;
  position: absolute;
}
body { overflow: hidden; margin: 0;}
.red_square {
  height: 100px;
  left:30px;
  top: 20px;
  background: red;
  transform: rotate(30deg);
}
.filter {
  height: 200px;
  background: transparent;
  backdrop-filter: blur(20px);
}
</style>

/css/filter-effects/reference/backdrop-filter-edge-pixels-2-ref.html

<!DOCTYPE html>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="author" href="mailto:flackr@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty">
<script src="../support/simulate-backdrop-blur.js"></script>
<div class="red_square"></div>
<div class="filter"></div>

<style>
div {
  width: 100px;
  position: absolute;
}
body { overflow: hidden; margin: 0;}
.red_square {
  height: 100px;
  left:30px;
  top: 20px;
  background: red;
  transform: rotate(30deg);
}
.filter {
  height: 200px;
  background: transparent;
}
</style>
<script>
simulateBackdropBlur(document.querySelector('.filter'), [document.querySelector('.red_square')], 20);
</script>