Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/css-backdrop-filters-animation-combined.html
<!DOCTYPE html> <title>CSS Backdrop Filters Animation: Combined filters 001</title> <link rel="author" href="mailto:masonf@chromium.org"> <link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty"> <link rel="match" href="css-backdrop-filters-animation-combined-ref.html"> <style> @keyframes animate { 0% { backdrop-filter: blur(20px) brightness(0%) sepia(100%) grayscale(100%) saturate(0%) hue-rotate(90deg) invert(100%) opacity(0%) } 100% { backdrop-filter: none; } } .square { position: absolute; width: 100px; height: 100px; top: 100px; left: 100px; background: black; } .filt { position: absolute; width: 200px; height: 200px; top: 50px; left: 50px; animation-name: animate; animation-play-state: paused; animation-delay: -2s; animation-duration: 4s; animation-timing-function: linear; } .greenbox { position: absolute; width: 50px; height: 50px; top: 75px; left: 75px; background: green; } </style> <p>You should see a gray blurred rectangle with a green box.</p> <div class="square"></div> <div class="filt"> <div class="greenbox"></div> </div>
/css/filter-effects/css-backdrop-filters-animation-combined-ref.html
<!DOCTYPE html> <title>CSS Backdrop Filters Animation: Combined filters 001 Reference</title> <link rel="author" href="mailto:masonf@chromium.org"> <style> .square { position: absolute; width: 100px; height: 100px; top: 100px; left: 100px; background: black; } .filt { position: absolute; width: 200px; height: 200px; top: 50px; left: 50px; backdrop-filter: blur(10px) brightness(50%) sepia(50%) grayscale(50%) saturate(50%) hue-rotate(45deg) invert(50%) opacity(50%) } .greenbox { position: absolute; width: 50px; height: 50px; top: 75px; left: 75px; background: green; } </style> <p>You should see a gray blurred rectangle with a green box.</p> <div class="square"></div> <div class="filt"> <div class="greenbox"></div> </div>