aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/html/regions-transforms-016.htm
blob: 7d71268f378c80465ab065ae701d283e423621de (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
    <title></title>
    <title>CSS Regions: 3D transform on named flow content with perspective()</title>
    <link href="mailto:dalcala@adobe.com" rel="author" title="David Alcala">
    <link href="mailto:rhauck@adobe.com" rel="reviewer" title="Rebecca Hauck"> <!-- 07-15-2013 -->
    <link href="http://www.w3.org/TR/css3-regions/#the-flow-into-property" rel="help">
    <link href="http://www.w3.org/TR/css3-regions/#the-flow-from-property" rel="help">
    <link href="http://www.w3.org/TR/css-transforms-1/#three-d-transform-functions" rel="help">
    <link href="reference/regions-transforms-016-ref.htm" rel="match">
    <meta content="This test checks that a 3D transform is applied with perspective to named flow content." name="assert">
    <style>
    #region {
        width: 300px;
        height: 300px;
        position: relative;
        flow-from: f;
    }
    #named-flow {
        width: 200px;
        height: 200px;
        margin: 0 auto 60px;
        background-color: green;
        flow-into: f;
        transform: perspective(600px) rotateX(45deg);
    }
    #div-red-parent {
        position: relative;
    }
    .div-red {
        width: 48px;
        height: 48px;
        position: absolute;
        background-color: red;
    }
    #div-red1 {
        left: 64px;
        top: 38px;
    }
    #div-red2 {
        left: 191px;
        top: 38px;
    }
    #div-red3 {
        left: 48px;
        top: 131px;
    }
    #div-red4 {
        left: 207px;
        top: 131px;
    }
    </style>
</head>
<body>
    <p>The test passes if you see a green trapezoid and no red.</p>
    <!-- This test fails in WebKit.  See this bug: https://bugs.webkit.org/show_bug.cgi?id=114293 -->
    <div id="div-red-parent">
        <div id="div-red1" class="div-red"></div>
        <div id="div-red2" class="div-red"></div>
        <div id="div-red3" class="div-red"></div>
        <div id="div-red4" class="div-red"></div>
    </div>
    <div id="named-flow"></div>
    <div id="region"></div>


</body></html>