mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update CSS tests to revision 31d63cc79bd4c929ed582229e936d7b389f3e6ab
This commit is contained in:
parent
1a81b18b9f
commit
2c9faf5363
91915 changed files with 5979820 additions and 0 deletions
235
tests/wpt/css-tests/css-transforms-1_dev/html/chapter-10.htm
Normal file
235
tests/wpt/css-tests/css-transforms-1_dev/html/chapter-10.htm
Normal file
|
@ -0,0 +1,235 @@
|
|||
|
||||
|
||||
<!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 (17 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>
|
||||
<!-- 16 tests -->
|
||||
<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 &acirc;&#710;&#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 &acirc;&#710;&#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">≠</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">≠</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">≠</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: <https://bugzilla.mozilla.org/show_bug.cgi?id=726601>.</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: <https://bugzilla.mozilla.org/show_bug.cgi?id=726601>.</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">≠</a> <a href="reference/transform3d-rotatex-ref.htm">≠</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">≠</a> </td>
|
||||
<td></td>
|
||||
<td>'perspective' and 'opacity'
|
||||
<ul class="assert">
|
||||
<li>This tests for a real-world implementation bug: see <https://bugzilla.mozilla.org/show_bug.cgi?id=707563>. 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>
|
Loading…
Add table
Add a link
Reference in a new issue