Skip to content

Commit c73b13e

Browse files
committed
Make perspective-origin syntax match transform-origin
Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=16064.
1 parent 9ce3c5b commit c73b13e

3 files changed

Lines changed: 50 additions & 9 deletions

File tree

css3-transforms/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2012-03-12 ayg@aryeh.name
2+
Make perspective-origin syntax match transform-origin
3+
Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=16064.
4+
15
2012-03-12 ayg@aryeh.name
26
Clarify that everything is relative to table wrapper box
37
Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=15815.

css3-transforms/Overview.html

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,9 +1763,16 @@ <h2 id=perspective-origin-property><span class=secno>11. </span> The
17631763
<tr>
17641764
<td> <em>Value:</em>
17651765

1766-
<td> [ [ &lt;percentage&gt; | &lt;length&gt; | left | center | right ] [
1767-
&lt;percentage&gt; | &lt;length&gt; | top | center | bottom ]? ] | [ [
1768-
left | center | right ] || [ top | center | bottom ] ]
1766+
<td> [ &lt;percentage> | &lt;length> | left | center | right | top |
1767+
bottom]<br>
1768+
|<br>
1769+
[<br>
1770+
&nbsp;&nbsp;[ &lt;percentage> | &lt;length&gt; | left | center | right
1771+
]<br>
1772+
&nbsp;&nbsp;&amp;&amp;<br>
1773+
&nbsp;&nbsp;[ &lt;percentage> | &lt;length&gt; | top | center | bottom
1774+
]<br>
1775+
]<br>
17691776

17701777
<tr>
17711778
<td> <em>Initial:</em>
@@ -1805,6 +1812,17 @@ <h2 id=perspective-origin-property><span class=secno>11. </span> The
18051812
used to compute the <a href="#TermPerspectiveMatrix"><i>perspective
18061813
matrix</i></a>, as described above.
18071814

1815+
<p>If only one value is specified, the second value is assumed to be
1816+
&lsquo;<code class=property>center</code>&rsquo;.
1817+
1818+
<p>If at least one of the two values is not a keyword, then the first value
1819+
represents the horizontal position (or offset) and the second represents
1820+
the vertical position (or offset).
1821+
1822+
<p><var>&lt;percentage&gt;</var> and <var>&lt;length&gt;</var> values
1823+
represent an offset of the perspective origin from the top left corner of
1824+
the element's bounding box.
1825+
18081826
<p> The <a
18091827
href="http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#resolved-value">resolved
18101828
value</a> of &lsquo;<a href="#perspective-origin"><code class=css><code
@@ -2544,9 +2562,10 @@ <h2 class=no-num id=property-index>Property index</h2>
25442562
<tr>
25452563
<th><a class=property href="#perspective-origin">perspective-origin</a>
25462564

2547-
<td>[ [ &lt;percentage&gt; | &lt;length&gt; | left | center | right ] [
2548-
&lt;percentage&gt; | &lt;length&gt; | top | center | bottom ]? ] | [ [
2549-
left | center | right ] || [ top | center | bottom ] ]
2565+
<td>[ &lt;percentage> | &lt;length> | left | center | right | top |
2566+
bottom] | [ &nbsp;&nbsp;[ &lt;percentage> | &lt;length&gt; | left |
2567+
center | right ] &nbsp;&nbsp;&amp;&amp; &nbsp;&nbsp;[ &lt;percentage> |
2568+
&lt;length&gt; | top | center | bottom ] ]
25502569

25512570
<td>50% 50%
25522571

css3-transforms/Transforms.src.html

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,9 +1359,13 @@ <h2 id="perspective-origin-property">
13591359
<em>Value:</em>
13601360
</td>
13611361
<td>
1362-
[ [ &lt;percentage&gt; | &lt;length&gt; | left | center | right ] [
1363-
&lt;percentage&gt; | &lt;length&gt; | top | center | bottom ]? ] | [ [ left |
1364-
center | right ] || [ top | center | bottom ] ]
1362+
[ &lt;percentage> | &lt;length> | left | center | right | top | bottom]<br>
1363+
|<br>
1364+
[<br>
1365+
&nbsp;&nbsp;[ &lt;percentage> | &lt;length&gt; | left | center | right ]<br>
1366+
&nbsp;&nbsp;&amp;&amp;<br>
1367+
&nbsp;&nbsp;[ &lt;percentage> | &lt;length&gt; | top | center | bottom ]<br>
1368+
]<br>
13651369
</td>
13661370
</tr>
13671371
<tr>
@@ -1420,6 +1424,20 @@ <h2 id="perspective-origin-property">
14201424
properties are used to compute the <a href="#TermPerspectiveMatrix"><i>perspective matrix</i></a>, as described above.
14211425
</p>
14221426

1427+
<p>If only one value is specified, the second value is assumed to be
1428+
'center'.
1429+
</p>
1430+
1431+
<p>If at least one of the two values is not a keyword, then the
1432+
first value represents the horizontal position (or offset) and
1433+
the second represents the vertical position (or offset).
1434+
</p>
1435+
1436+
<p><var>&lt;percentage&gt;</var> and <var>&lt;length&gt;</var>
1437+
values represent an offset of the perspective origin from the top
1438+
left corner of the element's bounding box.
1439+
</p>
1440+
14231441
<p>
14241442
The <a href="http://dvcs.w3.org/hg/cssom/raw-file/tip/Overview.html/#resolved-value">resolved value</a>
14251443
of '<code class="property">perspective-origin</code>' is the

0 commit comments

Comments
 (0)