Skip to content

Commit 348d70c

Browse files
committed
Add defintions for keywords on 'transform-origin' and 'perspective-origin'.
1 parent d8b9602 commit 348d70c

3 files changed

Lines changed: 287 additions & 47 deletions

File tree

css3-transforms/ChangeLog

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2012-11-13 dschulze@adobe.com
2+
Add defintions for keywords on 'transform-origin' and 'perspective-origin'.
3+
14
2012-11-05 dschulze@adobe.com
25
Clarify multiplication order.
36

css3-transforms/Overview.html

Lines changed: 182 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
rel=dcterms.rights>
1313
<meta content="CSS Transforms" name=dcterms.title>
1414
<meta content=text name=dcterms.type>
15-
<meta content=2012-11-05 name=dcterms.issued>
15+
<meta content=2012-11-13 name=dcterms.issued>
1616
<meta content="http://dev.w3.org/csswg/css3-transforms/"
1717
name=dcterms.creator>
1818
<meta content=W3C name=dcterms.publisher>
19-
<meta content="http://www.w3.org/TR/2012/ED-css3-transforms-20121105/"
19+
<meta content="http://www.w3.org/TR/2012/ED-css3-transforms-20121113/"
2020
name=dcterms.identifier>
2121
<link href="../default.css" rel=stylesheet type="text/css">
2222
<script defer=defer
@@ -37,15 +37,15 @@
3737

3838
<h1>CSS Transforms</h1>
3939

40-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 5 November
40+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 13 November
4141
2012</h2>
4242

4343
<dl>
4444
<dt>This version:
4545

4646
<dd> <a
47-
href="http://www.w3.org/TR/2012/ED-css3-transforms-20121105/">http://dev.w3.org/csswg/css3-transforms/</a>
48-
<!--http://www.w3.org/TR/2012/WD-css3-transforms-20121105/-->
47+
href="http://www.w3.org/TR/2012/ED-css3-transforms-20121113/">http://dev.w3.org/csswg/css3-transforms/</a>
48+
<!--http://www.w3.org/TR/2012/WD-css3-transforms-20121113/-->
4949

5050
<dt>Latest version:
5151

@@ -1345,8 +1345,8 @@ <h2 id=transform-property><span class=secno>7. </span> The ‘<a
13451345
<tr>
13461346
<td> <em>Percentages:</em>
13471347

1348-
<td> refer to the size of the element's <a
1349-
href="#TermBoundingBox">bounding box</a>
1348+
<td> refer to the size of <a href="#bounding-box"><var>bounding
1349+
box</var></a>
13501350

13511351
<tr>
13521352
<td> <em>Media:</em>
@@ -1407,8 +1407,8 @@ <h2 id=transform-origin-property><span class=secno>8. </span> The ‘<a
14071407
<tr>
14081408
<td> <em>Percentages:</em>
14091409

1410-
<td> refer to the size of the element's <a
1411-
href="#TermBoundingBox">bounding box</a>
1410+
<td> refer to the size of <a href="#bounding-box"><var>bounding
1411+
box</var></a>
14121412

14131413
<tr>
14141414
<td> <em>Media:</em>
@@ -1442,13 +1442,59 @@ <h2 id=transform-origin-property><span class=secno>8. </span> The ‘<a
14421442
represents the Z position (or offset) and must be of type
14431443
<var>&lt;length&gt;</var>.
14441444

1445-
<p> <var>&lt;percentage&gt;</var> and <var>&lt;length&gt;</var> for the
1446-
first two values represent an offset of the transform origin from the top
1447-
left corner of the element's <a href="#TermBoundingBox">bounding box</a>.
1445+
<dl>
1446+
<dt><var>&lt;percentage&gt;</var>
1447+
1448+
<dd>
1449+
<p>A percentage for the horizontal offset is relative to the width of the
1450+
<a href="#bounding-box"><var>bounding box</var></a>. A percentage for
1451+
the vertical offset is relative to height of the <a
1452+
href="#bounding-box"><var>bounding box</var></a>. The value for the
1453+
horizontal and vertical offset represent an offset from the top left
1454+
corner of the <a href="#bounding-box"><var>bounding box</var></a>.
1455+
1456+
<dt><var>&lt;length&gt;</var>
1457+
1458+
<dd>
1459+
<p>A length value gives a fixed length as the offset. The value for the
1460+
horizontal and vertical offset represent an offset from the top left
1461+
corner of the <a href="#bounding-box"><var>bounding box</var></a>.
1462+
1463+
<p>For SVG elements without an associated CSS layout box the horizontal
1464+
and vertical offset represent an offset from the point of origin of the
1465+
element's local coordinate space.
1466+
1467+
<dt><dfn id=top title="''top''!!'transform-origin' value"><code
1468+
class=css>top</code></dfn>
1469+
1470+
<dd>Computes to ‘<code class=css>0%</code>’ for the vertical position.
1471+
1472+
<dt><dfn id=right title="''right''!!'transform-origin' value"><code
1473+
class=css>right</code></dfn>
1474+
1475+
<dd>Computes to ‘<code class=css>100%</code>’ for the horizontal
1476+
position.
1477+
1478+
<dt><dfn id=bottom title="''bottom''!!'transform-origin' value"><code
1479+
class=css>bottom</code></dfn>
1480+
1481+
<dd>Computes to ‘<code class=css>100%</code>’ for the vertical
1482+
position.
14481483

1449-
<p> For SVG elements without an associated CSS layout box the
1450-
<var>&lt;length&gt;</var> values represent an offset from the point of
1451-
origin of the element's local coordinate space.
1484+
<dt><dfn id=left title="''left''!!'transform-origin' value"><code
1485+
class=css>left</code></dfn>
1486+
1487+
<dd>Computes to ‘<code class=css>0%</code>’ for the horizontal
1488+
position.
1489+
1490+
<dt><dfn id=center title="''center''!!'transform-origin' value"><code
1491+
class=css>center</code></dfn>
1492+
1493+
<dd>Computes to ‘<code class=css>50%</code>’ (‘<code class=css>left
1494+
50%</code>’) for the horizontal position if the horizontal position is
1495+
not otherwise specified, or ‘<code class=css>50%</code>’ (‘<code
1496+
class=css>top 50%</code>’) for the vertical position if it is.
1497+
</dl>
14521498

14531499
<p> The <a href="http://www.w3.org/TR/cssom/#resolved-value">resolved
14541500
value</a> of ‘<a href="#transform-origin"><code
@@ -1647,8 +1693,8 @@ <h2 id=perspective-origin-property><span class=secno>11. </span> The ‘<a
16471693
<tr>
16481694
<td> <em>Percentages:</em>
16491695

1650-
<td> refer to the size of the element's <a
1651-
href="#TermBoundingBox">bounding box</a>
1696+
<td> refer to the size of the <a href="#bounding-box"><var>bounding
1697+
box</var></a>
16521698

16531699
<tr>
16541700
<td> <em>Media:</em>
@@ -1675,9 +1721,62 @@ <h2 id=perspective-origin-property><span class=secno>11. </span> The ‘<a
16751721
value represents the horizontal position (or offset) and the second
16761722
represents the vertical position (or offset).
16771723

1678-
<p> <var>&lt;percentage&gt;</var> and <var>&lt;length&gt;</var> values
1679-
represent an offset of the perspective origin from the top left corner of
1680-
the element's <a class=term href="#bounding-box">bounding box</a>.
1724+
<p> The values for ‘<a href="#perspective-origin"><code
1725+
class=property>perspective-origin</code></a>’ represent an offset of the
1726+
perspective origin from the top left corner of the <a
1727+
href="#bounding-box"><var>bounding box</var></a>.
1728+
1729+
<dl>
1730+
<dt><var>&lt;percentage&gt;</var>
1731+
1732+
<dd>
1733+
<p>A percentage for the horizontal perspctive offset is relative to the
1734+
width of the <a href="#bounding-box"><var>bounding box</var></a>. A
1735+
percentage for the vertical offset is relative to height of the <a
1736+
href="#bounding-box"><var>bounding box</var></a>. The value for the
1737+
horizontal and vertical offset represent an offset from the top left
1738+
corner of the <a href="#bounding-box"><var>bounding box</var></a>.
1739+
1740+
<dt><var>&lt;length&gt;</var>
1741+
1742+
<dd>
1743+
<p>A length value gives a fixed length as the offset. The value for the
1744+
horizontal and vertical offset represent an offset from the top left
1745+
corner of the <a href="#bounding-box"><var>bounding box</var></a>.
1746+
1747+
<dt><dfn id=top0 title="''top''!!'perspective-origin' value"><code
1748+
class=css>top</code></dfn>
1749+
1750+
<dd>Computes to ‘<code class=css>0%</code>’ for the vertical position.
1751+
1752+
<dt><dfn id=right0 title="''right''!!'perspective-origin' value"><code
1753+
class=css>right</code></dfn>
1754+
1755+
<dd>Computes to ‘<code class=css>100%</code>’ for the horizontal
1756+
position.
1757+
1758+
<dt><dfn id=bottom0
1759+
title="''bottom''!!'perspective-origin' value"><code
1760+
class=css>bottom</code></dfn>
1761+
1762+
<dd>Computes to ‘<code class=css>100%</code>’ for the vertical
1763+
position.
1764+
1765+
<dt><dfn id=left0 title="''left''!!'perspective-origin' value"><code
1766+
class=css>left</code></dfn>
1767+
1768+
<dd>Computes to ‘<code class=css>0%</code>’ for the horizontal
1769+
position.
1770+
1771+
<dt><dfn id=center0
1772+
title="''center''!!'perspective-origin' value"><code
1773+
class=css>center</code></dfn>
1774+
1775+
<dd>Computes to ‘<code class=css>50%</code>’ (‘<code class=css>left
1776+
50%</code>’) for the horizontal position if the horizontal position is
1777+
not otherwise specified, or ‘<code class=css>50%</code>’ (‘<code
1778+
class=css>top 50%</code>’) for the vertical position if it is.
1779+
</dl>
16811780

16821781
<p> The <a href="http://www.w3.org/TR/cssom/#resolved-value">resolved
16831782
value</a> of ‘<a href="#perspective-origin"><code
@@ -2048,7 +2147,7 @@ <h3 id=svg-user-coordinate-space><span class=secno>13.6. </span> User
20482147
values in the current user coordinate system of the parent. All percentage
20492148
values of the ‘<a href="#effects"><code
20502149
class=property>transform</code></a>’ presentation attribute are relative
2051-
to the element's <a class=term href="#bounding-box">bounding box</a>.
2150+
to the element's <a href="#bounding-box"><var>bounding box</var></a>.
20522151

20532152
<div class=example>
20542153
<p> The ‘<a href="#transform-origin"><code
@@ -2076,7 +2175,7 @@ <h3 id=svg-user-coordinate-space><span class=secno>13.6. </span> User
20762175
&lt;/svg&gt;</pre>
20772176

20782177
<p> An SVG ‘<code class=property>pattern</code>’ element doesn't have
2079-
a bounding box. The <a class=term href="#bounding-box">bounding box</a>
2178+
a bounding box. The <a href="#bounding-box"><var>bounding box</var></a>
20802179
of the referencing ‘<code class=property>rect</code>’ element is used
20812180
instead to solve the relative values of the ‘<a
20822181
href="#transform-origin"><code
@@ -3347,7 +3446,7 @@ <h2 class=no-num id=property-index>Property index</h2>
33473446

33483447
<td>no
33493448

3350-
<td>refer to the size of the element's bounding box
3449+
<td>refer to the size of the bounding box
33513450

33523451
<td>visual
33533452

@@ -3380,7 +3479,7 @@ <h2 class=no-num id=property-index>Property index</h2>
33803479

33813480
<td>no
33823481

3383-
<td>refer to the size of the element's bounding box
3482+
<td>refer to the size of bounding box
33843483

33853484
<td>visual
33863485

@@ -3395,7 +3494,7 @@ <h2 class=no-num id=property-index>Property index</h2>
33953494

33963495
<td>no
33973496

3398-
<td>refer to the size of the element's bounding box
3497+
<td>refer to the size of bounding box
33993498

34003499
<td>visual
34013500

@@ -3430,16 +3529,51 @@ <h2 class=no-num id=index>Index</h2>
34303529
<li>backface-visibility, <a href="#backface-visibility"
34313530
title=backface-visibility><strong>12.</strong></a>
34323531

3532+
<li><code class=css>bottom</code>
3533+
<ul>
3534+
<li><a href="#perspective-origin"><code
3535+
class=property>perspective-origin</code></a>’ value, <a
3536+
href="#bottom0"
3537+
title="''bottom'', 'perspective-origin' value"><strong>11.</strong></a>
3538+
3539+
<li><a href="#transform-origin"><code
3540+
class=property>transform-origin</code></a>’ value, <a href="#bottom"
3541+
title="''bottom'', 'transform-origin' value"><strong>8.</strong></a>
3542+
</ul>
3543+
34333544
<li>bounding box, <a href="#bounding-box"
34343545
title="bounding box"><strong>4.</strong></a>
34353546

3547+
<li><code class=css>center</code>
3548+
<ul>
3549+
<li><a href="#perspective-origin"><code
3550+
class=property>perspective-origin</code></a>’ value, <a
3551+
href="#center0"
3552+
title="''center'', 'perspective-origin' value"><strong>11.</strong></a>
3553+
3554+
<li><a href="#transform-origin"><code
3555+
class=property>transform-origin</code></a>’ value, <a href="#center"
3556+
title="''center'', 'transform-origin' value"><strong>8.</strong></a>
3557+
</ul>
3558+
34363559
<li>current transformation matrix (CTM), <a
34373560
href="#current-transformation-matrix-ctm"
34383561
title="current transformation matrix (CTM)"><strong>4.</strong></a>
34393562

34403563
<li>identity transform function, <a href="#identity-transform-function"
34413564
title="identity transform function"><strong>4.</strong></a>
34423565

3566+
<li><code class=css>left</code>
3567+
<ul>
3568+
<li><a href="#perspective-origin"><code
3569+
class=property>perspective-origin</code></a>’ value, <a href="#left0"
3570+
title="''left'', 'perspective-origin' value"><strong>11.</strong></a>
3571+
3572+
<li><a href="#transform-origin"><code
3573+
class=property>transform-origin</code></a>’ value, <a href="#left"
3574+
title="''left'', 'transform-origin' value"><strong>8.</strong></a>
3575+
</ul>
3576+
34433577
<li>local coordinate system, <a href="#local-coordinate-system"
34443578
title="local coordinate system"><strong>4.</strong></a>
34453579

@@ -3452,6 +3586,29 @@ <h2 class=no-num id=index>Index</h2>
34523586
<li>perspective-origin, <a href="#perspective-origin"
34533587
title=perspective-origin><strong>11.</strong></a>
34543588

3589+
<li><code class=css>right</code>
3590+
<ul>
3591+
<li><a href="#perspective-origin"><code
3592+
class=property>perspective-origin</code></a>’ value, <a
3593+
href="#right0"
3594+
title="''right'', 'perspective-origin' value"><strong>11.</strong></a>
3595+
3596+
<li><a href="#transform-origin"><code
3597+
class=property>transform-origin</code></a>’ value, <a href="#right"
3598+
title="''right'', 'transform-origin' value"><strong>8.</strong></a>
3599+
</ul>
3600+
3601+
<li><code class=css>top</code>
3602+
<ul>
3603+
<li><a href="#perspective-origin"><code
3604+
class=property>perspective-origin</code></a>’ value, <a href="#top0"
3605+
title="''top'', 'perspective-origin' value"><strong>11.</strong></a>
3606+
3607+
<li><a href="#transform-origin"><code
3608+
class=property>transform-origin</code></a>’ value, <a href="#top"
3609+
title="''top'', 'transform-origin' value"><strong>8.</strong></a>
3610+
</ul>
3611+
34553612
<li>transform, <a href="#effects" title=transform><strong>7.</strong></a>
34563613

34573614
<li>transformable element, <a href="#transformable-element"

0 commit comments

Comments
 (0)