Status: PASS | Duration: 9ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/filter-effects/backdrop-filter-corner-shape-change.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Backdrop filter updates correctly when corner-shape changes</title> <link rel="author" href="mailto:zhoupeng.1996@bytedance.com"> <link rel="help" href="https://drafts.fxtf.org/filter-effects-2/#BackdropFilterProperty"> <link rel="match" href="backdrop-filter-corner-shape-change-ref.html"> <style> h1 { font-size: 100px; } .target { width: 300px; height: 300px; background: green; transform: translate(50px, -150px); backdrop-filter: blur(5px); border-radius: 150px; } .inline-bg { margin: -100px 0px; } .target-inline { font-size: 100px; background: green; backdrop-filter: blur(5px); border-radius: 150px; } </style> <h1>Hello World</h1> <div class="target"></div> <h1 class="inline-bg">Hello World</h1> <span class="target-inline">Hello World</span> <script> window.addEventListener('load', (e) => { requestAnimationFrame(() => { requestAnimationFrame(() => { document.querySelector('.target').style.cornerShape = 'scoop'; document.querySelector('.target-inline').style.cornerShape = 'scoop'; }); }); }); </script>
/css/filter-effects/backdrop-filter-corner-shape-change-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>Backdrop filter updates correctly when corner-shape changes</title> <link rel="author" href="mailto:zhoupeng.1996@bytedance.com"> <style> h1 { font-size: 100px; } .target { width: 300px; height: 300px; background: green; transform: translate(50px, -150px); backdrop-filter: blur(5px); border-radius: 150px; corner-shape: scoop; } .inline-bg { margin: -100px 0px; } .target-inline { font-size: 100px; background: green; backdrop-filter: blur(5px); border-radius: 150px; corner-shape: scoop; } </style> <h1>Hello World</h1> <div class="target"></div> <h1 class="inline-bg">Hello World</h1> <span class="target-inline">Hello World</span>