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/clip-under-filter-002.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Filters: Clips on descendants of filter elements are applied</title>
<link rel="author" title="Xianzhu Wang" href="wangxianzhu@chromium.org">
<link rel="match" href="reference/clip-under-filter-002-ref.html">
<meta name="assert" content="Check that there is a blurred square, left half blue and right half green"/>
<div style="filter: blur(10px)">
<div style="position: relative; width: 100px; height: 100px; background: blue; overflow: hidden">
<div style="position: absolute; width: 100px; height: 100px; right: -50px; background: green; overflow: hidden"></div>
</div>
</div>