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-svg-foreignObject.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>backdrop-filter: on SVG foreignObject</title>
<link rel="match" href="backdrop-filter-basic-ref.html">
<div>
<p>Expected: A green box and an overlapping black box, with a magenta<br>
overlapping region.</p>
</div>
<div class="colorbox">
<svg>
<foreignObject class="filterbox"></foreignObject>
</svg>
</div>
<style>
.colorbox {
position: absolute;
background: green;
width: 100px;
height: 100px;
left: 10px;
top: 100px;
}
svg {
position: absolute;
width: 200px;
height: 200px;
left: 50px;
top: 50px;
}
.filterbox {
width: 100px;
height: 100px;
backdrop-filter: invert(1);
}
</style>