aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/html/reference/transform-applies-to-001-ref.htm
blob: 4a8f61c54cbb4b4dc621c548c1cd472a3416ae43 (plain) (blame)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>CSS Reftest Reference</title>
  <link rel="author" title="Apple Inc." href="http://www.apple.com/">
  <style type="text/css">
    div {
      position: relative;
    }
    div p {
      position: absolute;
      top: 0;
      left: 0;
      display: block;
    }
    #ref {
      width: 100px;
      height: 100px;
      background-color: green;
    }
  </style>
 </head>
 <body>
  <p>You should see a green box. There should be no red.</p>
  <div>
    <p id="ref"></p>
  </div>
 </body>
</html>