Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

Commit 25ba5bc

Browse filesBrowse the repository at this point in the historyBrowse files
tabatkinssvgeesus
authored andcommitted
fix bikeshed errors
1 parent 292dc09 commit 25ba5bc
Copy full SHA for 25ba5bc

1 file changed

+33-32Lines changed: 33 additions & 32 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎motion-1/Overview.bs‎

Copy file name to clipboardExpand all lines: motion-1/Overview.bs
+33-32Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ that can be applied to an element.
7777

7878
As described in [[css-transforms-2#ctm]],
7979
the transforms defined by this document are layered
80-
after the [=individual transform properties=]
81-
(defined in [[css-transforms-2]])
80+
after the individual transform properties
81+
('translate'/'rotate'/'scale', defined in [[css-transforms-2]])
8282
and before the 'transform' property
8383
(defined in [[css-transforms-1]]).
8484

@@ -144,61 +144,62 @@ Values have the following meanings:
144144
: <<ray()>>
145145
::
146146
The [=offset path=] is a line extending from the [=initial position=]
147+
at some angle.
148+
See [[#ray-function]] for details.
147149

148-
149-
150-
: <<basic-shape>> && <<coord-box>>?
150+
: <<basic-shape>>
151151
::
152152
The <a>offset path</a> is a basic shape as specified in CSS Shapes [[!CSS-SHAPES]].
153153

154-
'offset-position' is ignored for circle and ellipse basic shapes with explicit center positions, and for other types of basic shapes. If a circle or ellipse basic shape has no explicit center position, the shape is centered at the <var>initial position</var> of the path, as described in 'offset-position'.
154+
'offset-position' is ignored for circle and ellipse basic shapes with explicit center positions, and for other types of basic shapes. If a circle or ellipse basic shape has no explicit center position, the shape is centered at the [=initial position=] of the path, as described in 'offset-position'.
155155

156-
The <var>initial position</var> for basic shapes are defined as follows:
156+
The [=initial position=] for basic shapes are defined as follows:
157157

158158
: <<path()>>
159159
::
160-
The <var>initial position</var> is defined by the first “move to” argument in the path string. For the initial direction follow SVG 1.1 [[!SVG11]].
160+
The [=initial position=] is defined by the first “move to” argument in the path string. For the initial direction follow SVG 1.1 [[!SVG11]].
161161
: <<circle()>>
162162
: <<ellipse()>>
163163
::
164-
The <var>initial position</var> is defined by the point where a horizontal tangent to the circle/ellipse would reach the top vertical position.
164+
The [=initial position=] is defined by the point where a horizontal tangent to the circle/ellipse would reach the top vertical position.
165+
165166
: <<inset()>>
166167
::
167-
The <var>initial position</var> is the left end of the top horizontal line, immediately to the right of any 'border-radius' arc.
168+
The [=initial position=] is the left end of the top horizontal line, immediately to the right of any 'border-radius' arc.
168169
: <<polygon()>>
169170
::
170-
The <var>initial position</var> is defined by the first coordinate pair of the polygon.
171+
The [=initial position=] is defined by the first coordinate pair of the polygon.
171172

172173
The <var>initial direction</var> is defined by the vector connecting.
173174

174-
the <var>initial position</var> with the next following coordinate pair that isn't equal to the <var>initial position</var>.
175+
the [=initial position=] with the next following coordinate pair that isn't equal to the [=initial position=].
175176

176177
The <<coord-box>> specified in combination with a <<basic-shape>> provides the reference box for the <<basic-shape>>. If no reference box is specified, it defaults to ''&lt;coord-box>/border-box''.
177178

178179
Apart from polygons with non-zero length, the <var>initial direction</var> is 90 degrees (i.e. to the right).
179180

180-
Note: This gives ''0deg'' rotation when 'offset-rotate' is ''auto''.
181+
Note: This gives ''0deg'' rotation when 'offset-rotate' is ''offset-rotate/auto''.
181182

182183
: <<coord-box>>
183184
::
184185
The [=offset path=] is the specified [=edge=] of the box,
185186
including the effect of any 'border-radius'.
186187

187-
The <var>initial position</var> is the left end of the top horizontal line,
188+
The [=initial position=] is the left end of the top horizontal line,
188189
immediately to the right of any 'border-radius' arc,
189190
and the <var>initial direction</var> is to the right.
190191

191192
: <<url>>
192193
::
193194
References an SVG <a>shape element</a> and uses its geometry as <a>offset path</a>.
194-
See SVG 1.1 for more information about the <var>initial position</var> and <var>initial direction</var> [[!SVG11]].
195+
See SVG 1.1 for more information about the [=initial position=] and <var>initial direction</var> [[!SVG11]].
195196

196197
: <dfn for=offset-path id=offsetpath-none>none</dfn>
197198
::
198199
No <a>offset path</a> gets created. When 'offset-path' is <a href="#offsetpath-none">none</a>, 'offset-distance' and 'offset-rotate' have no effect.
199200
</dl>
200201

201-
A computed value of other than <a href="#offsetpath-none">none</a> results in the creation of a <a>stacking context</a> [[!CSS21]] and <a href="https://www.w3.org/TR/CSS2/visuren.html#containing-block">containing block</a>, per usual for <a href="https://drafts.csswg.org/css-transforms-1/#propdef-transform">transforms</a>.
202+
A computed value of other than <a href="#offsetpath-none">none</a> results in the creation of a <a>stacking context</a> [[!CSS21]] and [=containing block=], per usual for 'transform'.
202203

203204
A reference that fails to download, is not a reference to an SVG <a>shape element</a>, or is non-existent, is treated as equivalent to <code>path("m 0 0")</code>.
204205

@@ -249,7 +250,7 @@ Its arguments are:
249250
Specifies the length of the [=offset path=]
250251
(the distance between the ''offset-distance: 0%''
251252
and ''offset-distance: 100%'' points)
252-
relative to the [=containing box=].
253+
relative to the containing box.
253254

254255
If no <<ray-size>> is specified it defaults to ''closest-side''.
255256

@@ -542,9 +543,9 @@ Specifies the position of the box as a distance along the <a>offset path</a>.
542543
<dl dfn-for="offset-distance" dfn-type="value">
543544
: <<length-percentage>>
544545
::
545-
Specifies the distance from the <var>initial position</var> of the <a>offset path</a> to the position of the box’s <a>anchor point</a>.
546+
Specifies the distance from the [=initial position=] of the <a>offset path</a> to the position of the box’s <a>anchor point</a>.
546547

547-
Percentages are relative to the length of the <a>offset path</a>-- that is, the distance between the <var>initial position</var> and the end position of the <a>offset path</a>.
548+
Percentages are relative to the length of the <a>offset path</a>-- that is, the distance between the [=initial position=] and the end position of the <a>offset path</a>.
548549
</dl>
549550

550551
### Calculating the computed distance along a path ### {#calculating-the-computed-distance-along-a-path}
@@ -765,7 +766,7 @@ Values are defined as follows:
765766
</code></pre>
766767
<figure>
767768
<img alt="An image of offset-position: auto" src="images/offset_position_auto.png" width="300"/>
768-
<figcaption>An example when ''auto'' is given to 'offset-position'</figcaption>
769+
<figcaption>An example when ''offset-position/auto'' is given to 'offset-position'</figcaption>
769770
</figure>
770771
</div>
771772

@@ -1176,18 +1177,18 @@ Values have the following meanings:
11761177
<dl dfn-for="offset-rotate" dfn-type="value">
11771178
: <dfn>auto</dfn>
11781179
::
1179-
Indicates that the object is rotated (over time if 'offset-distance' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>offset path</a>, relative to the positive x-axis. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''auto''.
1180+
Indicates that the object is rotated (over time if 'offset-distance' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>offset path</a>, relative to the positive x-axis. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''offset-rotate/auto''.
11801181

1181-
Note: For ray paths, the rotation implied by ''auto'' is 90 degrees less than the ray's bearing <<angle>>.
1182+
Note: For ray paths, the rotation implied by ''offset-rotate/auto'' is 90 degrees less than the ray's bearing <<angle>>.
11821183

11831184
: <dfn>reverse</dfn>
11841185
::
1185-
Indicates that the object is rotated (over time if 'offset-distance' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>offset path</a>, relative to the positive x-axis, plus 180 degrees. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''reverse''.
1186+
Indicates that the object is rotated (over time if 'offset-distance' is animated) by the angle of the direction (i.e., directional tangent vector) of the <a>offset path</a>, relative to the positive x-axis, plus 180 degrees. If specified in combination with <<angle>>, the computed value of <<angle>> is added to the computed value of ''offset-rotate/reverse''.
11861187

11871188
Note: This is the same as specifying ''auto 180deg''.
1188-
: <<angle>>
1189+
: <dfn><<angle>></dfn>
11891190
::
1190-
Indicates that the box has a constant clockwise rotation transformation applied to it by the specified rotation angle. See definitions of ''auto'' or ''reverse'' if specified in combination with either one of the keywords.
1191+
Indicates that the box has a constant clockwise rotation transformation applied to it by the specified rotation angle. See definitions of ''offset-rotate/auto'' or ''offset-rotate/reverse'' if specified in combination with either one of the keywords.
11911192
</dl>
11921193

11931194
When the <a>offset path</a> is a zero length path, the value of 'offset-rotate' is 0 degree, the direction of the positive x-axis.
@@ -1213,7 +1214,7 @@ When the shape's <a>anchor point</a> is placed at different positions along the
12131214
rotation transforms.</figcaption>
12141215
</figure>
12151216

1216-
If the 'offset-rotate' property is set to ''auto'', and the shape's <a>anchor point</a> is placed at different positions along the path, the shape is rotated based on the gradient at the current position and faces the direction of the path at this position.
1217+
If the 'offset-rotate' property is set to ''offset-rotate/auto'', and the shape's <a>anchor point</a> is placed at different positions along the path, the shape is rotated based on the gradient at the current position and faces the direction of the path at this position.
12171218

12181219
<figure>
12191220
<img src="images/offset-rotate-auto.svg" width="470" height="120" alt="Path with auto rotation">
@@ -1239,9 +1240,9 @@ The last example sets the 'offset-rotate' property to ''-45deg''. The shape is r
12391240
</div>
12401241

12411242
<div class=example>
1242-
This example shows how ''auto'' or ''reverse'' work when specified in combination
1243+
This example shows how ''offset-rotate/auto'' or ''offset-rotate/reverse'' work when specified in combination
12431244
with <<angle>>.
1244-
The computed value of <<angle>> is added to the computed value of ''auto'' or ''reverse''.
1245+
The computed value of <<angle>> is added to the computed value of ''offset-rotate/auto'' or ''offset-rotate/reverse''.
12451246

12461247
<pre><code highlight=html>
12471248
&lt;style>
@@ -1299,7 +1300,7 @@ The computed value of <<angle>> is added to the computed value of ''auto'' or ''
12991300
</code></pre>
13001301
<figure>
13011302
<img alt="An image of example for offset-rotate" src="images/rotate_by_angle_with_auto.png" style="width: 250px; text-align: center"/>
1302-
<figcaption>The boxes are rotated by the value of ''auto'' with a fixed amount of degree.</figcaption>
1303+
<figcaption>The boxes are rotated by the value of ''offset-rotate/auto'' with a fixed amount of degree.</figcaption>
13031304
</figure>
13041305
</div>
13051306

@@ -1308,7 +1309,7 @@ The computed value of <<angle>> is added to the computed value of ''auto'' or ''
13081309

13091310
<div class=switch>
13101311
1. Create a supplemental transformation matrix <dfn>T1</dfn> for the local coordinate system of the box.
1311-
2. Find the <var>initial position</var> of the <a>offset path</a> specified by 'offset-position' as <dfn>T2</dfn>.
1312+
2. Find the [=initial position=] of the <a>offset path</a> specified by 'offset-position' as <dfn>T2</dfn>.
13121313
3. Let <dfn>P</dfn> be the point at the <a>used offset distance</a> along the <a>offset path</a>.
13131314
4. Find the translation of the box such that its <a>anchor point</a> is placed at <a>P</a>, and apply that to <a>T2</a>.
13141315
5. Post-multiply <a>T2</a> by the rotation specified by 'offset-rotate'.
@@ -1364,10 +1365,10 @@ The following changes were made since the <a href="https://www.w3.org/TR/2015/WD
13641365
* Added <<size>> and 'contain' value for the ''ray()''.
13651366
* Renamed <a href="https://www.w3.org/TR/2015/WD-motion-1-20150409/#propdef-motion-offset">motion-offset</a> to 'offset-distance' for integrating with <a href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-distance-property">polar-distance</a>.
13661367
* Renamed <a href="https://www.w3.org/TR/2015/WD-motion-1-20150409/#propdef-motion-rotation">motion-rotation</a> to 'offset-rotate'.
1367-
* Added 'offset-position' to specify the <var>initial position</var> of the path by merging <a href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-origin-property">polar-origin</a> from [[CSS-ROUND-DISPLAY-1]].
1368+
* Added 'offset-position' to specify the [=initial position=] of the path by merging <a href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-origin-property">polar-origin</a> from [[CSS-ROUND-DISPLAY-1]].
13681369
* Added 'offset-anchor' to specify the origin point of the element by merging <a href="https://www.w3.org/TR/2016/WD-css-round-display-1-20160301/#polar-anchor-property">polar-anchor</a> from [[CSS-ROUND-DISPLAY-1]].
13691370
* Renamed the shorthand property <a href="https://www.w3.org/TR/2015/WD-motion-1-20150409/#propdef-motion">motion</a> to 'offset'.
1370-
* Made 'offset-rotate' specify the rotation transformation by ''auto'' or ''reverse'' in combination with <<angle>>.
1371+
* Made 'offset-rotate' specify the rotation transformation by ''offset-rotate/auto'' or ''offset-rotate/reverse'' in combination with <<angle>>.
13711372

13721373
<h2 class=no-num id=acknowledgments>Acknowledgments</h2>
13731374

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.