summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-blending/mix-blend-mode-952051.html
blob: 4895a6f72114f605b93c3e16ec3ede9d13bffb66 (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
29
30
31
32
33
34
35
36
37
<!DOCTYPE HTML>
<head>
	<style>
		.parent {
		  width: 200px;
		  height: 200px;
		  overflow: hidden;
			border-radius: 0px 0px 20px 0px;
			position: absolute;
			z-index: 0;
			background-color: #00ff00;
		}

		.child {
		  width: 300px;
		  height: 300px;
		  margin-left: 100px;
		  background-color: #ff0000;
		  mix-blend-mode: difference;
		}

		body {
			margin: 0;
		}

	</style>
	<!-- Rounded rect clipping seems to not yield the same results when clipping
	the parent and child elements individually. The reference rendering will show
	some of the parent green color around the child's clipped corner.
	The reftests, on the other hand, shows some gray pixels around the same area. 
	This may somehow be related to antialiasing. -->
</head>
<body>
	<div class="parent">
	    <div class="child"></div>
	</div>
</body>