summaryrefslogtreecommitdiffstats
path: root/layout/reftests/svg/blend-difference-stacking.html
blob: cca18f8ce8c38f2bd2fa585d19da6a571e6f7393 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!--
     Any copyright is dedicated to the Public Domain.
     http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<style>
#b {
  width: 200px;
  height: 200px;
  background-color: rgb(0,255,0);
}
#c {
  z-index: 1;
  position: absolute;
  top:100px;
}
</style>
<div id="b">
<svg width="100" height="100" viewBox="0 0 100 100" >
  <rect style="fill:#00FF00;mix-blend-mode:difference;" width="100" height="100"/>
</svg>
<div id="c">
<svg width="100" height="100" viewBox="0 0 100 100" >
  <rect style="fill:#00FF00;mix-blend-mode:difference;" width="100" height="100"/>
</svg>
</div>
</div>
</html>