summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/clip-under-filter-002.html
blob: 8b6a66d45232e9924fe079bfbeff88c1aa0b0f53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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="help" href="https://drafts.fxtf.org/filter-effects-1/#funcdef-filter-blur">
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#overflow-properties">
<link rel="help" href="https://crbug.com/809102">
<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>