Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/filter-effects/backdrop-filter-zero-size.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset="utf-8">
<title>backdrop-filter: Zero-size div with backdrop filter shouldn't filter anything</title>
<link rel="author" href="mailto:masonf@chromium.org">
<link rel="match" href="backdrop-filter-zero-size-ref.html">
<p>Expected: A single green box.</p>
<div class="colorbox"></div>
<div class="filterparent">
<div class="filterchild"></div>
</div>
<style>
div {
position: absolute;
width: 100px;
height: 100px;
}
.colorbox {
background: green;
left: 10px;
top: 100px;
}
.filterparent {
width: 0px;
height: 0px;
left: 50px;
top: 150px;
backdrop-filter: invert(1);
background: lime;
}
.filterchild {
top: 100px;
background: #FFFFFF00;
}
</style>