summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/reference/backface-visibility-hidden-ref.html
blob: 6a3e305e5c0c7fca6c8d53574b7a09eb21afb6cc (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>
<html>
<head>
    <title>CSS Transforms Reference File</title>
    <link rel="author" title="Jian Zhang" href="mailto:jian.andy.zhang@gmail.com">
    <style type="text/css">
        .greenSquare {
            position: absolute;
            top: 50px;
            left: 50px;
            width: 100px;
            height: 100px;
            background: green;
            z-index: 2;
        }

        .card {
            transform-style: preserve-3d;
        }

        .container {
            width: 200px;
            height: 200px;
            perspective: 1000;
            transform: rotateY(45deg);
        }

    </style>
</head>
<body>
    <p>The test passes if there is a green retangle and no red.</p>
    <div class="container">
        <div class="card">
            <div class="greenSquare face"></div>
        </div>
    </div>
</body>
</html>