summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/reference/transform-origin-01-ref.html
blob: e6bac9379096476f887131ed9204d2903b13a499 (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
<!DOCTYPE html>
<html>
<head>
    <title>Reference File</title>
    <link rel="author" title="CJ Gammon" href="mailto:youremail@address.com">
    <style type="text/css">

        #container{
            position: relative;
        }

        .square{
            position: absolute;
        }

        #green{
            top: 50px;
            left: 50px;
            width: 100px;
            height: 100px;
            background: green;
        }

    </style>
</head>
<body>
    <p>The test passes if there is a green square and no red or blue square.</p>

    <div id="container">
        <div id="green" class="square"></div>
    </div>

</body>
</html>