Skip to content

Commit 53d3ce4

Browse files
committed
[css-transforms] Export defintions
1 parent f217e79 commit 53d3ce4

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

css-transforms/Overview.html

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
<link href=../default.css rel=stylesheet type=text/css>
55
<link href=../csslogo.ico rel="shortcut icon" type=image/x-icon>
66
<link href=https://www.w3.org/StyleSheets/TR/W3C-ED rel=stylesheet type=text/css>
7-
<script defer src=http://test.csswg.org/harness/annotate.js#css-transforms-1_dev type=text/javascript></script>
8-
9-
</head>
10-
<body class=h-entry>
11-
<style scoped type=text/css>
7+
<style type=text/css>
128
.example {
139
clear:both
1410
}
@@ -38,19 +34,21 @@
3834
}
3935
</style>
4036

37+
</head>
38+
<body class=h-entry>
4139
<div class=head>
4240
<p data-fill-with=logo><a class=logo href=http://www.w3.org/>
4341
<img alt=W3C height=48 src=http://www.w3.org/Icons/w3c_home width=72>
4442
</a>
4543
</p>
4644
<h1 class="p-name no-ref" id=title>CSS Transforms Module Level 1</h1>
4745
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
48-
<span class=dt-updated><span class=value-title title=20140201>1 February 2014</span></span></span></h2>
46+
<span class=dt-updated><span class=value-title title=20140211>11 February 2014</span></span></span></h2>
4947
<div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-transforms/>http://dev.w3.org/csswg/css-transforms/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css3-transforms/>http://www.w3.org/TR/css3-transforms/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-transforms/>http://dev.w3.org/csswg/css-transforms/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120911/ rel=previous>http://www.w3.org/TR/2012/WD-css3-transforms-20120911/</a><dd><a href=http://www.w3.org/TR/2012/WD-css3-transforms-20120403/ rel=previous>http://www.w3.org/TR/2012/WD-css3-transforms-20120403/</a>
5048
<dt>Feedback:</dt>
5149
<dd><a href="mailto:public-fx@w3.org?subject=%5Bcss-transforms%5D%20feedback">public-fx@w3.org</a>
5250
with subject line
53-
<kbd>[css-transforms] <var>… message topic …</var></kbd>”(<a href=http://lists.w3.org/Archives/Public/public-fx/ rel=discussion>archives</a>)<dt>Test Suite:<dd><a href=http://test.csswg.org/suites/css3-transforms/nightly-unstable/>http://test.csswg.org/suites/css3-transforms/nightly-unstable/</a><dt>Editors:
51+
<kbd>[css-transforms] <var>… message topic …</var></kbd>”(<a href=http://lists.w3.org/Archives/Public/public-fx/ rel=discussion>archives</a>)<dt>Test Suite:<dd>None Yet<dt>Editors:
5452
<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:simon.fraser@apple.com>Simon Fraser</a> (<span class="p-org org"><a href=http://www.apple.com/>Apple Inc</a></span>)<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:dino@apple.com>Dean Jackson</a> (<span class="p-org org"><a href=http://www.apple.com/>Apple Inc</a></span>)<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:eoconnor@apple.com>Edward O’Connor</a> (<span class="p-org org"><a href=http://www.apple.com/>Apple Inc</a></span>)<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:dschulze@adobe.com>Dirk Schulze</a> (<span class="p-org org"><a href=http://www.adobe.com/>Adobe Systems Inc</a></span>)<dt>Former Editors:
5553
<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:hyatt@apple.com>David Hyatt</a> (<span class="p-org org"><a href=http://www.apple.com/>Apple Inc</a></span>)<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:cmarrin@apple.com>Chris Marrin</a> (<span class="p-org org"><a href=http://www.apple.com/>Apple Inc</a></span>)<dd class="p-author h-card vcard"><a class="p-name fn u-email email" href=mailto:ayg@aryeh.name>Aryeh Gregor</a> (<span class="p-org org"><a href=http://www.mozilla.org/>Mozilla</a></span>)<dt>Issues List:<dd><a href="https://www.w3.org/Bugs/Public/buglist.cgi?query_format=advanced&amp;product=CSS&amp;component=Transforms&amp;resolution=---&amp;cmdtype=doit">in Bugzilla</a></dl></div>
5654
<div data-fill-with=warning></div>
@@ -190,9 +188,9 @@ <h2 class="heading settled heading" data-level=4 id=terminology><span class=secn
190188
<p>When used in this specification, terms have the meanings assigned in this section.
191189

192190
<dl>
193-
<dt><dfn data-dfn-type=dfn data-noexport="" id=bounding-box>bounding box<a class=self-link href=#bounding-box></a></dfn></dt>
191+
<dt><dfn data-dfn-type=dfn data-export="" id=bounding-box>bounding box<a class=self-link href=#bounding-box></a></dfn></dt>
194192
<dd>
195-
A bounding box is the object bounding box for all SVG elements without an associated CSS layout box and the border box for all other elements. The bounding box of a table is the border box of its <a href=http://www.w3.org/TR/CSS21/tables.html#model>table wrapper box</a>, not its table box.
193+
A bounding box is the <a data-link-type=dfn href=https://svgwg.org/svg2-draft/coords.html#TermObjectBoundingBox title="object bounding box">object bounding box</a> for all SVG elements without an associated CSS layout box and the border box for all other elements. The bounding box of a table is the border box of its <a href=http://www.w3.org/TR/CSS21/tables.html#model>table wrapper box</a>, not its table box.
196194
</dd>
197195
<dt><dfn data-dfn-type=dfn data-noexport="" id=transformable-element>transformable element<a class=self-link href=#transformable-element></a></dfn></dt>
198196
<dd>
@@ -220,7 +218,7 @@ <h2 class="heading settled heading" data-level=4 id=terminology><span class=secn
220218
<dt><dfn data-dfn-type=dfn data-noexport="" id=transformation-matrix>transformation matrix<a class=self-link href=#transformation-matrix></a></dfn></dt>
221219
<dd>
222220
A matrix that defines the mathematical mapping from one coordinate system into another. It is computed from the values of the <a class=property data-link-type=propdesc href=#propdef-transform title=transform>transform</a> and <a class=property data-link-type=propdesc href=#propdef-transform-origin title=transform-origin>transform-origin</a> properties as described <a href=#transformation-matrix-computation>below</a>.
223-
</dd>
221+
</dd>
224222
<dt><dfn data-dfn-type=dfn data-noexport="" id=current-transformation-matrix-ctm>current transformation matrix (CTM)<a class=self-link href=#current-transformation-matrix-ctm></a></dfn></dt>
225223
<dd>
226224
A matrix that defines the mapping from the local coordinate system into the viewport coordinate system.
@@ -631,7 +629,7 @@ <h3 class="heading settled heading" data-level=6.2 id=processing-of-perspective-
631629

632630
<p>If <var>w</var> = 0, (<var>x</var>′, <var>y</var>′, <var>z</var>′) = (<var>x</var><var>n</var>, <var>y</var><var>n</var>, <var>z</var><var>n</var>). <var>n</var> is an implementation-dependent value that should be chosen so that <var>x</var>′ or <var>y</var>′ is much larger than the viewport size, if possible. For example, (5px, 22px, 0px, 0) might become (5000px, 22000px, 0px), with <var>n</var> = 1000, but this value of <var>n</var> would be too small for (0.1px, 0.05px, 0px, 0). This specification does not define the value of <var>n</var> exactly. Conceptually, (<var>x</var>′, <var>y</var>′, <var>z</var>′) is <a href=http://en.wikipedia.org/wiki/Plane_at_infinity>infinitely far</a> in the direction (<var>x</var>, <var>y</var>, <var>z</var>).
633631

634-
<p>If <var>w</var> &lt; 0 for all four corners of the transformed box, the box is not rendered.
632+
<p>If <var>w</var> &lt; 0 for all four corners of the transformed box, the box is not rendered.
635633

636634
<p>If <var>w</var> &lt; 0 for one to three corners of the transformed box, the box must be replaced by a polygon that has any parts with <var>w</var> &lt; 0 cut out. This will in general be a polygon with three to five vertices, of which exactly two will have <var>w</var> = 0 and the rest <var>w</var> &gt; 0. These vertices are then transformed to three-dimensional points using the rules just stated. Conceptually, a point with <var>w</var> &lt; 0 is "behind" the viewer, so should not be visible.
637635

@@ -823,9 +821,9 @@ <h2 class="heading settled heading" data-level=11 id=perspective-origin-property
823821

824822
<dl data-dfn-for=perspective-origin data-dfn-type=value>
825823
<dt><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#percentage-value title="<percentage>">&lt;percentage&gt;</a></dt>
826-
<dd><p>A percentage for the horizontal perspctive offset is relative to the width of the
824+
<dd><p>A percentage for the horizontal perspctive offset is relative to the width of the
827825
<a data-link-type=dfn href=#bounding-box title="bounding box">bounding box</a>.
828-
A percentage for the vertical offset is relative to height of the
826+
A percentage for the vertical offset is relative to height of the
829827
<a data-link-type=dfn href=#bounding-box title="bounding box">bounding box</a>. The value for the horizontal
830828
and vertical offset represent an offset from the top left corner of the
831829
<a data-link-type=dfn href=#bounding-box title="bounding box">bounding box</a>.
@@ -1419,7 +1417,7 @@ <h2 class="heading settled heading" data-level=19 id=interpolation-of-transform-
14191417
</p>
14201418
</div>
14211419

1422-
<p>Two different types of transform functions that share the same primitive, or transform functions of the same type with different number of arguments can be interpolated. Both transform functions need a former conversion to the common primitive first and get interpolated numerically afterwards. The computed value will be the primitive with the resulting interpolated arguments.
1420+
<p>Two different types of transform functions that share the same primitive, or transform functions of the same type with different number of arguments can be interpolated. Both transform functions need a former conversion to the common primitive first and get interpolated numerically afterwards. The computed value will be the primitive with the resulting interpolated arguments.
14231421

14241422
<div class=example>
14251423
<p>
@@ -1520,7 +1518,7 @@ <h3 class="heading settled heading" data-level=20.1 id=supporting-functions><spa
15201518
double max(double y, double x) returns the bigger value of the two passed values
15211519
double min(double y, double x) returns the smaller value of the two passed values
15221520
double cos(double) returns the cosines of passed value
1523-
double sin(double) returns the sine of passed value
1521+
double sin(double) returns the sine of passed value
15241522
double acos(double) returns the inverse cosine of passed value
15251523
double abs(double) returns the absolute value of the passed value
15261524
double rad2deg(double) transforms a value in radian to degree and returns it
@@ -1570,16 +1568,16 @@ <h4 class="heading settled heading" data-level=20.2.1 id=decomposing-a-2d-matrix
15701568
else
15711569
scale[1] = -scale[1]
15721570

1573-
// Renormalize matrix to remove scale.
1571+
// Renormalize matrix to remove scale.
15741572
if (scale[0])
15751573
row0x *= 1 / scale[0]
15761574
row0y *= 1 / scale[0]
1577-
if (scale[1])
1575+
if (scale[1])
15781576
row1x *= 1 / scale[1]
15791577
row1y *= 1 / scale[1]
15801578

1581-
// Compute rotation and renormalize matrix.
1582-
angle = atan2(row0y, row0x);
1579+
// Compute rotation and renormalize matrix.
1580+
angle = atan2(row0y, row0x);
15831581

15841582
if (angle)
15851583
// Rotate(-angle) = [cos(angle), sin(angle), -sin(angle), cos(angle)]
@@ -1610,7 +1608,7 @@ <h4 class="heading settled heading" data-level=20.2.2 id=interpolation-of-decomp
16101608
Interpolation of decomposed 2D matrix values
16111609
</span><a class=self-link href=#interpolation-of-decomposed-2d-matrix-values></a></h4>
16121610

1613-
<p>Before two decomposed 2D matrix values can be interpolated, the following
1611+
<p>Before two decomposed 2D matrix values can be interpolated, the following
16141612

16151613
<pre>Input: translationA ; a 2 component vector
16161614
scaleA ; a 2 component vector
@@ -1644,7 +1642,7 @@ <h4 class="heading settled heading" data-level=20.2.2 id=interpolation-of-decomp
16441642
if (abs(angleA - angleB) &gt; 180)
16451643
if (angleA &gt; angleB)
16461644
angleA -= 360
1647-
else
1645+
else
16481646
angleB -= 360
16491647
</pre>
16501648
<p>Afterwards, each component of the decomposed values translation, scale, angle, m11 to m22 of the source matrix get linearly interpolated with each corresponding component of the destination matrix.
@@ -1814,8 +1812,8 @@ <h4 class="heading settled heading" data-level=20.3.2 id=interpolation-of-decomp
18141812

18151813
<p class=note>Note: For instance, <code>translate[0]</code> of the source matrix and <code>translate[0]</code> of the destination matrix are interpolated numerically, and the result is used to set the translation of the animating element.
18161814

1817-
<p>Quaternions of the decomposed source matrix are interpolated with quaternions of the decomposed destination matrix using the spherical linear interpolation (Slerp) as described by the pseudo code below:
1818-
1815+
<p>Quaternions of the decomposed source matrix are interpolated with quaternions of the decomposed destination matrix using the spherical linear interpolation (Slerp) as described by the pseudo code below:
1816+
18191817
<pre>Input: quaternionA ; a 4 component vector
18201818
quaternionB ; a 4 component vector
18211819
t ; interpolation parameter with 0 &lt;= t &lt;= 1
@@ -1853,7 +1851,7 @@ <h4 class="heading settled heading" data-level=20.3.3 id=recomposing-to-a-3d-mat
18531851
Output: matrix ; a 4x4 matrix
18541852

18551853
Supporting functions (matrix is a 4x4 matrix):
1856-
matrix multiply(matrix a, matrix b) returns the 4x4 matrix product of a * b
1854+
matrix multiply(matrix a, matrix b) returns the 4x4 matrix product of a * b
18571855

18581856
// apply perspective
18591857
for (i = 0; i &lt; 4; i++)
@@ -1989,6 +1987,7 @@ <h2 class="heading settled heading" data-level=21 id=mathematical-description><s
19891987
<img alt="\begin{bmatrix} 1 &amp; 0 &amp; 0 &amp; 0 \\ 0 &amp; 1 &amp; 0 &amp; 0 \\ 0 &amp; 0 &amp; 1 &amp; 0 \\ 0 &amp; 0 &amp; -1/d &amp; 1 \end{bmatrix}" height=106 src=perspective.png width=143>
19901988
</li>
19911989
</ul>
1990+
19921991
<h2 class="no-ref no-num heading settled heading" id=conformance><span class=content>
19931992
Conformance</span><a class=self-link href=#conformance></a></h2>
19941993

css-transforms/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ <h2 id="terminology">Terminology</h2>
109109
When used in this specification, terms have the meanings assigned in this section.
110110

111111
<dl>
112-
<dt><dfn>bounding box</dfn></dt>
112+
<dt><dfn export>bounding box</dfn></dt>
113113
<dd>
114-
A bounding box is the object bounding box for all SVG elements without an associated CSS layout box and the border box for all other elements. The bounding box of a table is the border box of its <a href="http://www.w3.org/TR/CSS21/tables.html#model">table wrapper box</a>, not its table box.
114+
A bounding box is the <i>object bounding box</i> for all SVG elements without an associated CSS layout box and the border box for all other elements. The bounding box of a table is the border box of its <a href="http://www.w3.org/TR/CSS21/tables.html#model">table wrapper box</a>, not its table box.
115115
</dd>
116116
<dt><dfn>transformable element</dfn></dt>
117117
<dd>

0 commit comments

Comments
 (0)