summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/filters/filter-region-01b.html
blob: 21d5add6e30d468c43098981142fc36f3a7af456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<body style="background-color: lime;">
<svg width="0" height="0">
  <filter id="myFilter" filterUnits="objectBoundingBox" x="0" y="0" width="50%" height="50%">
    <feMerge>
      <feMergeNode/>
    </feMerge>
  </filter>
</svg>

<svg style="position: fixed;" x="0" y ="0" width="400" height="400">
  <!-- This filtered inner element should be covered by the next outer svg element. -->
  <svg filter="url(#myFilter)" style="position: fixed;" x="0" y ="0" width="200" height="200">
    <rect x="10" y="10" width="120" height="120" fill="red"/>
  </svg>
</svg>

<svg style="position: fixed;" x="0" y ="0" width="120" height="120">
  <rect x="10" y="10" width="100" height="100" fill="lime"/>
</svg>

</body>