blob: d85ebdf835c10b46005df917c14b1a98a64c3316 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>The perspective-origin Property - CSS Transforms Module Level 1 CR Test Suite</title>
<style type="text/css">
@import "http://www.w3.org/StyleSheets/TR/base.css";
@import "../indices.css";
</style>
</head>
<body>
<h1>CSS Transforms Module Level 1 CR Test Suite</h1>
<h2>The perspective-origin Property (11 tests)</h2>
<table width="100%">
<col id="test-column"></col>
<col id="refs-column"></col>
<col id="flags-column"></col>
<col id="info-column"></col>
<thead>
<tr>
<th>Test</th>
<th><abbr title="Rendering References">Refs</abbr></th>
<th>Flags</th>
<th>Info</th>
</tr>
</thead>
<tbody id="s11">
<tr><th colspan="4" scope="rowgroup">
<a href="#s11">+</a>
<a href="http://www.w3.org/TR/css-transforms-1/#perspective-origin-property">11 The perspective-origin Property</a></th></tr>
<!-- 1 tests -->
<tr id="regions-transforms-019-11" class="ahem">
<td>
<a href="regions-transforms-019.xht">regions-transforms-019</a></td>
<td><a href="reference/regions-transforms-019-ref.xht">=</a> </td>
<td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
<td>CSS Regions: 3D transform on named flow (text) content with perspective property set on region
<ul class="assert">
<li>Test checks that the 3D transform is applied named content flow, that the perspective set on the region is applied, and that the content is not clipped when the perspective is shifted</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s11.#propdef-perspective-origin">
<!-- 10 tests -->
<tr id="perspective-origin-001-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-001.xht">perspective-origin-001</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - 0px center('center' computes to '50%' in vertical position)
<ul class="assert">
<li>The 'perspective-origin' property set 'center' computes to 50% for the vertical position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-002-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-002.xht">perspective-origin-002</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - center 0px('center' computes to '50%' in horizontal position)
<ul class="assert">
<li>The 'perspective-origin' property set 'center' computes to 50% for the horizontal position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-003-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-003.xht">perspective-origin-003</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - 50% bottom('bottom' computes to '100%' in vertical position)
<ul class="assert">
<li>The 'perspective-origin' property set 'bottom' computes to 100% for the vertical position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-004-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-004.xht">perspective-origin-004</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - 50% top('top' computes to '0%' in vertical position)
<ul class="assert">
<li>The 'perspective-origin' property set 'top' computes to 0% for the vertical position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-005-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-005.xht">perspective-origin-005</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - left 50%('left' computes to '0%' in horizontal position)
<ul class="assert">
<li>The 'perspective-origin' property set 'left' computes to 0% for the horizontal position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-006-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-006.xht">perspective-origin-006</a></strong></td>
<td><a href="reference/ref-filled-green-100px-square.xht">=</a> </td>
<td></td>
<td>perspective-origin - right 50%('right' computes to '100%' in horizontal position)
<ul class="assert">
<li>The 'perspective-origin' property set 'right' computes to 100% for the horizontal position.</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-x-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-x.xht">perspective-origin-x</a></strong></td>
<td><a href="reference/perspective-origin-reftest.xht">=</a> </td>
<td></td>
<td>perspective property
<ul class="assert">
<li>Asserts that origin 'x1' visually moves the objects '-x1*d/(d-1)'</li>
</ul>
</td>
</tr>
<tr id="perspective-origin-xy-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="perspective-origin-xy.xht">perspective-origin-xy</a></strong></td>
<td><a href="reference/perspective-reftest.xht">=</a> </td>
<td></td>
<td>perspective property
<ul class="assert">
<li>Asserts that origin '<x,y>' visually moves the objects '<-x,-y>*d/(d-1)'</li>
</ul>
</td>
</tr>
<tr id="transform3d-perspective-009-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="transform3d-perspective-009.xht">transform3d-perspective-009</a></strong></td>
<td><a href="reference/transform3d-perspective-009-ref.xht">=</a> <a href="reference/transform-lime-square-ref.xht">≠</a> </td>
<td></td>
<td>'perspective-origin' and translate()
<ul class="assert">
<li>This tests that 'perspective' and 'perspective-origin' have the same effect as an appropriately calculated sequence of translate() and perspective(). The reference file's body has a width of 400px and a height of 100px, so the perspective-origin should be (200, 50). The transform-origin is 'top', which works out to (50, 0). Thus we translate by (150, 50) to get the right origin.</li>
</ul>
</td>
</tr>
<tr id="transform3d-perspective-origin-001-11.#propdef-perspective-origin" class="primary">
<td><strong>
<a href="transform3d-perspective-origin-001.xht">transform3d-perspective-origin-001</a></strong></td>
<td><a href="reference/transform3d-perspective-origin-ref.xht">=</a> <a href="reference/transform-lime-square-ref.xht">≠</a> <a href="transform3d-rotatex-perspective-001.xht">≠</a> <a href="reference/transform3d-rotatex-ref.xht">≠</a> </td>
<td></td>
<td>perspective-origin
<ul class="assert">
<li>This tests that 'perspective-origin: 0 0' is the same as 'perspective-origin: top left', different from no 'perspective-origin', and different from no perspective or no transform.</li>
</ul>
</td>
</tr>
</tbody>
<tbody id="s11.#valuedef-bottom">
<!-- 0 tests -->
</tbody>
<tbody id="s11.#valuedef-center">
<!-- 0 tests -->
</tbody>
<tbody id="s11.#valuedef-left">
<!-- 0 tests -->
</tbody>
<tbody id="s11.#valuedef-right">
<!-- 0 tests -->
</tbody>
<tbody id="s11.#valuedef-top">
<!-- 0 tests -->
</tbody>
</table>
</body>
</html>
|