aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/xhtml1print/regions-transforms-004.xht
blob: 1c624d7742fc36772932e0d7b7fd185c99e85627 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta charset="UTF-8" />
    <title>CSS Regions: Transformed region using a 3D transform</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-001-ref.xht" rel="match" />
    <meta content="This test checks that a 3D transform can be applied to a region" name="assert" />
    <style>
   
    #named-flow {
        width: 75px;
        height: 75px;
        background-color: red;
        border-top: 25px solid green;
        border-right: 25px solid green;
        flow-into: f;
    }
    #region {
        width: 100px;
        height: 100px;
        margin
        background-color: red;
        flow-from: f;
        transform:  rotate3d(1,1,0,180deg);
    }
    #square {
        position: absolute;
        left: 33px;
        top: 50px;
        width: 75px;
        height: 75px;
        background-color: green;
    }
    #failure1, #failure2 {
        position: absolute;
        background-color: red;
    }
    #failure1 {
        width: 25px;
        height: 100px;
    }
    #failure2 {
        width: 100px;
        height: 25px;
        top: 125px;
    }
    </style>
</head>
<body>
    <p>The test passes if you see a green square and no red.</p>
    
    <div id="failure1"></div>
    <div id="failure2"></div>
    <div id="named-flow"></div>
    <div id="region"></div>
    <div id="square"></div>

</body></html>