summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/filter-effects/filtered-html-is-not-container-ref.html
blob: c1f179a676a5072e83cd6e376d98653880563e9e (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
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Filter: Filtered html element does not establish a containing block.</title>
<link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">

<style>
#spacer {
  width: 2000px;
  height: 2000px;
  background-color: lightgreen;
}
#fixed, #absolute {
  width: 100px;
  height: 100px;
}
#fixed {
  position: fixed;
  top: 100px;
  left: 150px;
  background-color: green;
}
#absolute {
  position: absolute;
  top: 200px;
  left: 300px;
  background-color: blue;
}
</style>

<div id="fixed"></div>
<div id="absolute"></div>
<div id="spacer"></div>

<script>
window.onload = function() { window.scrollTo(50, 100); };
</script>