summaryrefslogtreecommitdiffstats
path: root/layout/reftests/xul/inactive-fixed-bg-bug1205630-ref.html
blob: 2322e4004dc3f083d2dea9389ab8233f3334d6c1 (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
38
39
40
41
42
43
44
<!DOCTYPE HTML>
<html>
<head>
<title>Testcase</title>

<style>

body {
  margin: 0px;
  padding: 0px;
}

#inner {
  width: 100px;
  height: 100px;
  background: linear-gradient(red, blue) no-repeat;
  background-position: -50px -50px;
  background-size: 800px 800px;
}

#outer {
  margin: 50px 50px 0;
  width: 100px;
  height: 100px;
  clip-path: url(#path);
  position: fixed;
}

</style>
</head>
<body>
<div id="outer">
  <div id="inner"></div>
</div>

<svg height="0">
  <defs>
    <clipPath id="path" clipPathUnits="objectBoundingBox">
      <polygon points="0.25,0.25 0.25,0.75 0.75,0.75 0.75,0.25"/>
    </clipPath>
  </defs>
</svg>
</body>
</html>