Status: PASS | Duration: 5ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-view-transitions/view-transition-name-is-backdrop-filter-root.html
<!DOCTYPE html> <html> <title>View transitions: view-transition-name non-none value is a backdrop filter root</title> <link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/"> <link rel="author" href="mailto:vmpstr@chromium.org"> <link rel="match" href="view-transition-name-is-backdrop-filter-root-ref.html"> <style> .background { background: cyan; width: 200px; height: 200px; } .shared { background: blue; position: relative; left: 50px; top: 50px; width: 100px; height: 100px; view-transition-name: shared; /* Apply transform to match the layerized pixels of view transition without establishing a backdrop filter root itself. */ transform: translateZ(0); } .filter { backdrop-filter: invert(1); position: relative; left: -50px; top: 30px; width: 200px; height: 40px; } </style> <div class=background> <div class=shared> <div class=filter></div> </div> </div>
/css/css-view-transitions/view-transition-name-is-backdrop-filter-root-ref.html
<!DOCTYPE html> <html> <title>View transitions: view-transition-name non-none value is a backdrop filter root (ref)</title> <link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/"> <link rel="author" href="mailto:vmpstr@chromium.org"> <style> .background { background: cyan; width: 200px; height: 200px; } .shared { background: blue; position: relative; left: 50px; top: 50px; width: 100px; height: 100px; will-change: opacity; } .filter { backdrop-filter: invert(1); position: relative; left: -50px; top: 30px; width: 200px; height: 40px; } </style> <div class=background> <div class=shared> <div class=filter></div> </div> </div>