aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/xhtml1/css3-transform-perspective.xht
blob: b6d17150eebd12deaf6e11de4ba4ae2469a59afc (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
<!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>
  <title>CSS Test: rotateX 90 degrees with perspective make it invisible</title>
  <link href="mailto:robin.webkit@gmail.com" rel="author" title="caoqixing" />
  <link href="mailto:shendayang@baidu.com" rel="reviewer" title="Dayang Shen" /> <!-- 2013-09-03 -->
  <link href="http://www.w3.org/TR/css-transforms-1/#propdef-perspective" rel="help" />
  <link href="reference/css3-transform-perspective-ref.xht" rel="match" />
  <meta content="Test passes if rotateX 90 degrees with perspective make it invisible" name="assert" />
  <style type="text/css">
    div {
      width: 200px;
      height: 200px;
    }
    #container {
      position: relative;
      background-color: green;
      perspective: 1000px;
    }
    #rotated {
      background-color: red;
      transform: rotateX(90deg);
    }
  </style>
</head>
<body>
  <p>The test passes if there is a green square and no red.</p>
  <div id="container">
    <div id="rotated"></div>
  </div>


</body></html>