Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/backdrop-filters-invert.html
<!DOCTYPE html> <title>CSS Backdrop Filters Animation: Invert</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="backdrop-filters-invert-ref.html"> <meta name="fuzzy" content="maxDifference=0-1; totalPixels=0-37500" /> <style> .square { position: absolute; width: 100px; height: 100px; top: 100px; left: 100px; background: black; } .filt { backdrop-filter: invert(50%); position: absolute; width: 200px; height: 200px; top: 50px; left: 50px; } .greenbox { position: absolute; width: 50px; height: 50px; top: 75px; left: 75px; background: green; } </style> <p>You should see a gray rectangle with a green box. Neither black nor white.</p> <div class="square"></div> <div class="filt"> <div class="greenbox"></div> </div>
/css/filter-effects/backdrop-filters-invert-ref.html
<!DOCTYPE html> <title>CSS Backdrop Filters Animation: Invert</title> <link rel="author" href="mailto:masonf@chromium.org"> <style> .square { position: absolute; width: 100px; height: 100px; top: 100px; left: 100px; background: black; filter: invert(50%); } .filt { position: absolute; width: 200px; height: 200px; top: 50px; left: 50px; background: white; filter: invert(50%); } .greenbox { position: absolute; width: 50px; height: 50px; top: 125px; left: 125px; background: green; } </style> <p>You should see a gray rectangle with a green box. Neither black nor white.</p> <div class="filt"></div> <div class="square"></div> <div class="greenbox"></div>