summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/containing-block-dynamic-1-ref.html
blob: 34b66abdb143f3566cadba64d3fd8f66511528f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS transforms: Creating containing block for fixed positioned elements</title>
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
<link rel="author" title="Mozilla" href="http://www.mozilla.org/">
<style>
  html, body { margin: 0; padding: 0 }
  #fixedmoves {
    position: absolute;
    top: 150px;
    left: 150px;
    background: green;
    height: 100px;
    width: 100px;
  }
</style>
<body>
  <div id="fixedmoves"></div>
</body>