Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions css/filter-effects/backdrop-filter-corner-shape-change-ref.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Backdrop filter updates correctly when corner-shape changes</title>
<link rel="author" href="mailto:[email protected]">
<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>
42 changes: 42 additions & 0 deletions css/filter-effects/backdrop-filter-corner-shape-change.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Backdrop filter updates correctly when corner-shape changes</title>
<link rel="author" href="mailto:[email protected]">
<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>