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
178
tests/wpt/css-tests/css-transforms-1_dev/html/chapter-11.htm
Normal file
178
tests/wpt/css-tests/css-transforms-1_dev/html/chapter-11.htm
Normal file
|
@ -0,0 +1,178 @@
|
|||
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||
<html>
|
||||
<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 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="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.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>
|
||||
</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.htm">perspective-origin-001</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-002</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-003</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-004</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-005</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-006</a></strong></td>
|
||||
<td><a href="reference/ref-filled-green-100px-square.htm">=</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.htm">perspective-origin-x</a></strong></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-origin-xy-11.#propdef-perspective-origin" class="primary">
|
||||
<td><strong>
|
||||
<a href="perspective-origin-xy.htm">perspective-origin-xy</a></strong></td>
|
||||
<td><a href="reference/perspective-reftest.htm">=</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.htm">transform3d-perspective-009</a></strong></td>
|
||||
<td><a href="reference/transform3d-perspective-009-ref.htm">=</a> <a href="reference/transform-lime-square-ref.htm">≠</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.htm">transform3d-perspective-origin-001</a></strong></td>
|
||||
<td><a href="reference/transform3d-perspective-origin-ref.htm">=</a> <a href="reference/transform-lime-square-ref.htm">≠</a> <a href="transform3d-rotatex-perspective-001.htm">≠</a> <a href="reference/transform3d-rotatex-ref.htm">≠</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>
|
Loading…
Add table
Add a link
Reference in a new issue