summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/ttwf-transform-translatey-001.html
blob: c8caa6bd7c17de28dcd3f50c6357adc574084225 (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
<!DOCTYPE html>
<html>
<head>
    <title>CSS Transform Using translateY() function</title>
    <link rel="author" title="Mihai Corlan" href="mailto:mcorlan@adobe.com">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-property">
    <link rel="match" href="reference/ttwf-reftest-transform-translatey-001.html">
    <meta name="assert" content="Test that the green square is moved on Y axis 100px">
    <style type="text/css">
        .greenSquare {
            position: absolute;
            top: 100px;
            left: 100px;
            width: 100px;
            height: 100px;
            transform: translateY(100px);
            background: green;
         }
        .redSquare {
            position: absolute;
            top: 200px;
            left: 100px;
            width: 98px;
            height: 98px;
            background: red;
         }
    </style>
</head>
<body>
    <p>The test passes if there is a green square and no red.</p>
    <div>
        <div class="redSquare"></div>
        <div class="greenSquare"></div>
    </div>
</body>
</html>