aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/css-tests/css-transforms-1_dev/html/chapter-10.htm
blob: e2989989b7a7b5c3033586591de882cb6da0ed2c (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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
 <head>
  <title>The perspective 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 Property (19 tests)</h2>
  <table width="100%">
    <col id="test-column">
    <col id="refs-column">
    <col id="flags-column">
    <col id="info-column">
    <thead>
      <tr>
        <th>Test</th>
        <th><abbr title="Rendering References">Refs</abbr></th>
        <th>Flags</th>
        <th>Info</th>
      </tr>
    </thead>
    <tbody id="s10">
      <tr><th colspan="4" scope="rowgroup">
        <a href="#s10">+</a>
        <a href="http://www.w3.org/TR/css-transforms-1/#perspective-property">10 The perspective Property</a></th></tr>
      <!-- 18 tests -->
      <tr id="perspective-containing-block-dynamic-1a-10" class="primary dom">
        <td><strong>
            <a href="perspective-containing-block-dynamic-1a.htm">perspective-containing-block-dynamic-1a</a></strong></td>
        <td><a href="reference/containing-block-dynamic-1-ref.htm">=</a> </td>
        <td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
        <td>CSS transforms: Creating containing block for fixed positioned elements
          <ul class="assert">
            <li>It also establishes a containing block (somewhat similar to position: relative), just like the transform property does.</li>
          </ul>
        </td>
      </tr>
      <tr id="perspective-containing-block-dynamic-1b-10" class="primary dom">
        <td><strong>
            <a href="perspective-containing-block-dynamic-1b.htm">perspective-containing-block-dynamic-1b</a></strong></td>
        <td><a href="reference/containing-block-dynamic-1-ref.htm">=</a> </td>
        <td><abbr class="dom" title="Requires Document Object Model support">DOM/JS</abbr></td>
        <td>CSS transforms: Creating containing block for fixed positioned elements
          <ul class="assert">
            <li>It also establishes a containing block (somewhat similar to position: relative), just like the transform property does.</li>
          </ul>
        </td>
      </tr>
      <tr id="perspective-origin-x-10" class="">
        <td>
            <a href="perspective-origin-x.htm">perspective-origin-x</a></td>
        <td><a href="reference/perspective-origin-reftest.htm">=</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-translatez-0-10" class="primary">
        <td><strong>
            <a href="perspective-translateZ-0.htm">perspective-translatez-0</a></strong></td>
        <td><a href="reference/perspective-reftest.htm">=</a> </td>
        <td></td>
        <td>perspective property
          <ul class="assert">
            <li>Asserts that points on the z=0 plane are unchanged</li>
          </ul>
        </td>
      </tr>
      <tr id="perspective-translatez-negative-10" class="primary">
        <td><strong>
            <a href="perspective-translateZ-negative.htm">perspective-translatez-negative</a></strong></td>
        <td><a href="reference/perspective-reftest.htm">=</a> </td>
        <td></td>
        <td>perspective property
          <ul class="assert">
            <li>Asserts that the scaling is proportional to d/(d &amp;acirc;&amp;#710;&amp;#8217; Z) for a negative Z</li>
          </ul>
        </td>
      </tr>
      <tr id="perspective-translatez-positive-10" class="primary">
        <td><strong>
            <a href="perspective-translateZ-positive.htm">perspective-translatez-positive</a></strong></td>
        <td><a href="reference/perspective-reftest.htm">=</a> </td>
        <td></td>
        <td>perspective property
          <ul class="assert">
            <li>Asserts that the scaling is proportional to d/(d &amp;acirc;&amp;#710;&amp;#8217; Z) for a positive Z</li>
          </ul>
        </td>
      </tr>
      <tr id="regions-transforms-005-10" class="ahem">
        <td>
            <a href="regions-transforms-005.htm">regions-transforms-005</a></td>
        <td><a href="reference/regions-transforms-001-ref.htm">=</a> </td>
        <td><abbr class="ahem" title="Requires Ahem font">Ahem</abbr></td>
        <td>CSS Regions: perspective set on the named flow content's parent does not apply when content flows into region
          <ul class="assert">
            <li>Test checks that content that has a 3D transform does not respect the perspective set on its parent when flowed into a region.</li>
          </ul>
        </td>
      </tr>
      <tr id="regions-transforms-019-10" class="ahem">
        <td>
            <a href="regions-transforms-019.htm">regions-transforms-019</a></td>
        <td><a href="reference/regions-transforms-019-ref.htm">=</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>
      <tr id="transform3d-perspective-001-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-001.htm">transform3d-perspective-001</a></strong></td>
        <td><a href="reference/transform3d-perspective-001-ref.htm">=</a> <a href="reference/transform-lime-square-ref.htm">&#x2260;</a> </td>
        <td></td>
        <td>perspective()
          <ul class="assert">
            <li>This tests that the perspective() transform works the same as an equivalent 'perspective' property.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-002-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-002.htm">transform3d-perspective-002</a></strong></td>
        <td><a href="reference/transform3d-perspective-001-ref.htm">=</a> <a href="reference/transform-lime-square-ref.htm">&#x2260;</a> </td>
        <td></td>
        <td>Inherited Perspective
          <ul class="assert">
            <li>This tests that 'perspective: inherit' works the same as specifying that perspective to start with.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-003-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-003.htm">transform3d-perspective-003</a></strong></td>
        <td><a href="reference/transform-lime-square-ref.htm">=</a> </td>
        <td></td>
        <td>Perspective on Grandparent
          <ul class="assert">
            <li>This tests that 'perspective' affects only the element's children, not its grandchildren.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-004-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-004.htm">transform3d-perspective-004</a></strong></td>
        <td><a href="reference/transform-lime-square-ref.htm">=</a> </td>
        <td></td>
        <td>'perspective: 1000px' on Grandparent and 'perspective: none' on Parent
          <ul class="assert">
            <li>This tests that 'perspective: none' actually results in no perspective being applied to children, even if the grandparent has perspective.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-005-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-005.htm">transform3d-perspective-005</a></strong></td>
        <td><a href="reference/transform-lime-square-ref.htm">=</a> </td>
        <td></td>
        <td>'perspective: 1000px' on Grandparent and 'perspective: 0px' on Parent
          <ul class="assert">
            <li>This tests that 'perspective: 0px' behaves the same as no perspective being specified at all (it's a parse error).</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-006-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-006.htm">transform3d-perspective-006</a></strong></td>
        <td><a href="reference/transform-lime-square-ref.htm">=</a> </td>
        <td></td>
        <td>Simple Perspective
          <ul class="assert">
            <li>This tests the 'perspective' property in a very simple case, such that the reference can be constructed without using CSS transforms.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-007-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-007.htm">transform3d-perspective-007</a></strong></td>
        <td><a href="reference/transform3d-perspective-001-ref.htm">=</a> <a href="reference/transform-lime-square-ref.htm">&#x2260;</a> </td>
        <td></td>
        <td>Perspective on Table Parent
          <ul class="assert">
            <li>This tests that tables are correctly affected by perspective on their parent. It's motivated by a real-world implementation bug: &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=726601&gt;.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-perspective-008-10" class="primary">
        <td><strong>
            <a href="transform3d-perspective-008.htm">transform3d-perspective-008</a></strong></td>
        <td><a href="reference/transform-lime-square-ref.htm">=</a> </td>
        <td></td>
        <td>Perspective on Table
          <ul class="assert">
            <li>This tests that perspective on a table only affects its children, not the table itself. It's motivated by a real-world implementation bug: &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=726601&gt;.</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-rotatex-perspective-002-10" class="">
        <td>
            <a href="transform3d-rotatex-perspective-002.htm">transform3d-rotatex-perspective-002</a></td>
        <td><a href="reference/transform-lime-square-ref.htm">&#x2260;</a> <a href="reference/transform3d-rotatex-ref.htm">&#x2260;</a> </td>
        <td></td>
        <td>rotatex() and 'perspective'
          <ul class="assert">
            <li>This tests that 'perspective' has some effect when combined with rotatex() (i.e., is not equivalent to simply omitting the perspective).</li>
          </ul>
        </td>
      </tr>
      <tr id="transform3d-rotatex-perspective-003-10" class="primary">
        <td><strong>
            <a href="transform3d-rotatex-perspective-003.htm">transform3d-rotatex-perspective-003</a></strong></td>
        <td><a href="reference/transform3d-rotatex-perspective-ref.htm">=</a> <a href="reference/transform3d-rotatex-perspective-notref.htm">&#x2260;</a> </td>
        <td></td>
        <td>'perspective' and 'opacity'
          <ul class="assert">
            <li>This tests for a real-world implementation bug: see &lt;https://bugzilla.mozilla.org/show_bug.cgi?id=707563&gt;. The only difference between the test and reference is 'opacity: 0.9999', which should not affect anything in the test.</li>
          </ul>
        </td>
      </tr>
    </tbody>
    <tbody id="s10.#issue-8678c096">
      <!-- 0 tests -->
    </tbody>
    <tbody id="s10.#none">
      <!-- 0 tests -->
    </tbody>
    <tbody id="s10.#propdef-perspective">
      <!-- 1 tests -->
      <tr id="css3-transform-perspective-10.#propdef-perspective" class="primary">
        <td><strong>
            <a href="css3-transform-perspective.htm">css3-transform-perspective</a></strong></td>
        <td><a href="reference/css3-transform-perspective-ref.htm">=</a> </td>
        <td></td>
        <td>rotateX 90 degrees with perspective make it invisible
          <ul class="assert">
            <li>Test passes if rotateX 90 degrees with perspective make it invisible</li>
          </ul>
        </td>
      </tr>
    </tbody>
  </table>

 </body>
</html>