mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
178 lines
No EOL
7.9 KiB
HTML
178 lines
No EOL
7.9 KiB
HTML
|
|
|
|
<!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="https://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="">
|
|
<td>
|
|
<a href="perspective-origin-001.xht">perspective-origin-001</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-002.xht">perspective-origin-002</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-003.xht">perspective-origin-003</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-004.xht">perspective-origin-004</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-005.xht">perspective-origin-005</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-006.xht">perspective-origin-006</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-x.xht">perspective-origin-x</a></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="">
|
|
<td>
|
|
<a href="perspective-origin-xy.xht">perspective-origin-xy</a></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="">
|
|
<td>
|
|
<a href="transform3d-perspective-009.xht">transform3d-perspective-009</a></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="">
|
|
<td>
|
|
<a href="transform3d-perspective-origin-001.xht">transform3d-perspective-origin-001</a></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> |