Skip to content

Commit 2c88c7c

Browse files
committed
[css-transitions] Better hyperlinking for property values.
1 parent ae03eac commit 2c88c7c

2 files changed

Lines changed: 34 additions & 29 deletions

File tree

css-transitions/Overview.bs

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ spec:css-values-3; type:type; text:<time>
3737
</pre>
3838
<pre class="anchors">
3939
url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for: shadow; text: inset;
40+
url: http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility; type: value; for: visibility; text: visible;
4041
</pre>
4142
</dl>
4243

@@ -152,8 +153,8 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
152153
</p>
153154
<pre class="propdef">
154155
Name: transition-property
155-
Value: none | <<single-transition-property>>#
156-
Initial: all
156+
Value: ''transition-property/none'' | <<single-transition-property>>#
157+
Initial: ''transition-property/all''
157158
Applies to: all elements, :before and :after pseudo elements
158159
Inherited: no
159160
Animatable: no
@@ -164,7 +165,7 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
164165
</pre>
165166

166167
<div class="prod">
167-
<dfn type id="single-transition-property">&lt;single-transition-property&gt;</dfn> = all | <<custom-ident>>;
168+
<dfn type id="single-transition-property">&lt;single-transition-property&gt;</dfn> = ''transition-property/all'' | <<custom-ident>>;
168169
</div>
169170

170171
<p>
@@ -190,32 +191,34 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
190191

191192
<p>
192193
The <<custom-ident>> production in <<single-transition-property>>
193-
also excludes the keyword ''none'',
194+
also excludes the keyword ''transition-property/none'',
194195
in addition to the keywords always excluded from <<custom-ident>>.
195-
This means that ''none'', ''inherit'', and ''initial'' are not
196+
This means that
197+
''transition-property/none'', ''inherit'', and ''initial'' are not
196198
permitted as items within a list of more that one identifier;
197199
any list that uses them is syntactically invalid.
198200
</p>
199201

200202
<p>
201-
For the keyword ''all'', or if one of the identifiers listed is a
203+
For the keyword ''transition-property/all'',
204+
or if one of the identifiers listed is a
202205
shorthand property, implementations must start transitions for
203206
any of its longhand sub-properties that are animatable (or, for
204-
''all'', all animatable properties), using the duration, delay,
207+
''transition-property/all'', all animatable properties), using the duration, delay,
205208
and timing function at the index corresponding to the shorthand.
206209
</p>
207210
<p>
208211
If a property is specified multiple times in the value of
209212
'transition-property' (either on its own, via a shorthand that
210-
contains it, or via the ''all'' value), then the transition that
213+
contains it, or via the ''transition-property/all'' value), then the transition that
211214
starts uses the duration, delay, and timing function at the
212215
index corresponding to the <em>last</em> item in the value of
213216
'transition-property' that calls for animating that property.
214217
</p>
215218
<p class="note">
216-
Note: The ''all'' value and 'all' shorthand
219+
Note: The ''transition-property/all'' value and 'all' shorthand
217220
property work in similar ways, so the
218-
''all'' value is just like a shorthand that
221+
''transition-property/all'' value is just like a shorthand that
219222
covers all properties.
220223
</p>
221224

@@ -229,7 +232,7 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
229232
<pre class="propdef">
230233
Name: <dfn id="transition-duration">transition-duration</dfn>
231234
Value: <<time>>#
232-
Initial: 0s
235+
Initial: ''0s''
233236
Applies to: all elements, :before and :after pseudo elements
234237
Inherited: no
235238
Animatable: no
@@ -320,7 +323,7 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
320323
<pre class="propdef">
321324
Name: <dfn id="transition-timing-function">transition-timing-function</dfn>
322325
Value: <<single-transition-timing-function>>#
323-
Initial: ease
326+
Initial: ''transition-timing-function/ease''
324327
Applies to: all elements, :before and :after pseudo elements
325328
Inherited: no
326329
Animatable: no
@@ -396,7 +399,7 @@ url: http://dev.w3.org/csswg/css-backgrounds-3/#shadow-inset; type: value; for:
396399
<pre class="propdef">
397400
Name: <dfn id="transition-delay">transition-delay</dfn>
398401
Value: <<time>>#
399-
Initial: 0s
402+
Initial: ''0s''
400403
Applies to: all elements, :before and :after pseudo elements
401404
Inherited: no
402405
Animatable: no

css-transitions/Overview.html

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@ <h3 class="heading settled" data-level="2.1" id="transition-property-property"><
424424
</tr>
425425
<tr>
426426
<th>Value:</th>
427-
<td class="prod">none <a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="#single-transition-property">&lt;single-transition-property></a><a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#mult-comma">#</a></td>
427+
<td class="prod"><a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-none">none</a> <a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="#single-transition-property">&lt;single-transition-property></a><a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#mult-comma">#</a></td>
428428
</tr>
429429
<tr>
430430
<th>Initial:</th>
431-
<td>all</td>
431+
<td><a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a></td>
432432
</tr>
433433
<tr>
434434
<th>Applies to:</th>
@@ -462,7 +462,7 @@ <h3 class="heading settled" data-level="2.1" id="transition-property-property"><
462462

463463

464464
<div class="prod">
465-
<dfn class="css" data-dfn-type="type" data-export="" id="single-transition-property">&lt;single-transition-property><a class="self-link" href="#single-transition-property"></a></dfn> = all <a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#identifier-value">&lt;custom-ident></a>;
465+
<dfn class="css" data-dfn-type="type" data-export="" id="single-transition-property">&lt;single-transition-property><a class="self-link" href="#single-transition-property"></a></dfn> = <a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a> <a data-link-for="" data-link-type="grammar" href="http://dev.w3.org/csswg/css-values-3/#comb-one">|</a> <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#identifier-value">&lt;custom-ident></a>;
466466
</div>
467467

468468

@@ -491,35 +491,37 @@ <h3 class="heading settled" data-level="2.1" id="transition-property-property"><
491491

492492
<p>
493493
The <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#identifier-value">&lt;custom-ident></a> production in <a class="production css" data-link-type="type" href="#single-transition-property">&lt;single-transition-property></a>
494-
also excludes the keyword <a class="css" data-link-type="maybe" href="#valdef-transition-property-none">none</a>,
494+
also excludes the keyword <a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-none">none</a>,
495495
in addition to the keywords always excluded from <a class="production css" data-link-type="type" href="http://dev.w3.org/csswg/css-values-3/#identifier-value">&lt;custom-ident></a>.
496-
This means that <a class="css" data-link-type="maybe" href="#valdef-transition-property-none">none</a>, <a class="css" data-link-type="maybe" href="http://dev.w3.org/csswg/css-cascade-3/#valuedef-inherit">inherit</a>, and <a class="css" data-link-type="maybe" href="http://dev.w3.org/csswg/css-cascade-3/#valuedef-initial">initial</a> are not
496+
This means that
497+
<a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-none">none</a>, <a class="css" data-link-type="maybe" href="http://dev.w3.org/csswg/css-cascade-3/#valuedef-inherit">inherit</a>, and <a class="css" data-link-type="maybe" href="http://dev.w3.org/csswg/css-cascade-3/#valuedef-initial">initial</a> are not
497498
permitted as items within a list of more that one identifier;
498499
any list that uses them is syntactically invalid.
499500
</p>
500501

501502

502503
<p>
503-
For the keyword <a class="css" data-link-type="maybe" href="#valdef-transition-property-all">all</a>, or if one of the identifiers listed is a
504+
For the keyword <a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a>,
505+
or if one of the identifiers listed is a
504506
shorthand property, implementations must start transitions for
505507
any of its longhand sub-properties that are animatable (or, for
506-
<a class="css" data-link-type="maybe" href="#valdef-transition-property-all">all</a>, all animatable properties), using the duration, delay,
508+
<a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a>, all animatable properties), using the duration, delay,
507509
and timing function at the index corresponding to the shorthand.
508510
</p>
509511

510512
<p>
511513
If a property is specified multiple times in the value of
512514
<a class="property" data-link-type="propdesc" href="#propdef-transition-property">transition-property</a> (either on its own, via a shorthand that
513-
contains it, or via the <a class="css" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value), then the transition that
515+
contains it, or via the <a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value), then the transition that
514516
starts uses the duration, delay, and timing function at the
515517
index corresponding to the <em>last</em> item in the value of
516518
<a class="property" data-link-type="propdesc" href="#propdef-transition-property">transition-property</a> that calls for animating that property.
517519
</p>
518520

519521
<p class="note" role="note">
520-
Note: The <a class="css" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value and <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-cascade-3/#propdef-all">all</a> shorthand
522+
Note: The <a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value and <a class="property" data-link-type="propdesc" href="http://dev.w3.org/csswg/css-cascade-3/#propdef-all">all</a> shorthand
521523
property work in similar ways, so the
522-
<a class="css" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value is just like a shorthand that
524+
<a class="css" data-link-for="transition-property" data-link-type="maybe" href="#valdef-transition-property-all">all</a> value is just like a shorthand that
523525
covers all properties.
524526
</p>
525527

@@ -545,7 +547,7 @@ <h3 class="heading settled" data-level="2.2" id="transition-duration-property"><
545547
</tr>
546548
<tr>
547549
<th>Initial:</th>
548-
<td>0s</td>
550+
<td><span class="css">0s</span></td>
549551
</tr>
550552
<tr>
551553
<th>Applies to:</th>
@@ -675,7 +677,7 @@ <h3 class="heading settled" data-level="2.3" id="transition-timing-function-prop
675677
</tr>
676678
<tr>
677679
<th>Initial:</th>
678-
<td>ease</td>
680+
<td><a class="css" data-link-for="transition-timing-function" data-link-type="maybe" href="#valdef-transition-timing-function-ease">ease</a></td>
679681
</tr>
680682
<tr>
681683
<th>Applies to:</th>
@@ -825,7 +827,7 @@ <h3 class="heading settled" data-level="2.4" id="transition-delay-property"><spa
825827
</tr>
826828
<tr>
827829
<th>Initial:</th>
828-
<td>0s</td>
830+
<td><span class="css">0s</span></td>
829831
</tr>
830832
<tr>
831833
<th>Applies to:</th>
@@ -1859,12 +1861,12 @@ <h2 class="heading settled" data-level="7" id="animatable-types"><span class="se
18591861

18601862
<li id="animtype-visibility"><a class="self-link" href="#animtype-visibility"></a>
18611863
<strong>visibility</strong>: if one of the values is
1862-
<span class="css" data-link-for="visibility">visible</span>, interpolated as a discrete step where values of the
1863-
timing function between 0 and 1 map to <span class="css" data-link-for="visibility">visible</span> and other
1864+
<a class="css" data-link-for="visibility" data-link-type="maybe" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility">visible</a>, interpolated as a discrete step where values of the
1865+
timing function between 0 and 1 map to <a class="css" data-link-for="visibility" data-link-type="maybe" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility">visible</a> and other
18641866
values of the timing function (which occur only at the
18651867
start/end of the transition or as a result of <a class="css" data-link-type="maybe" href="#funcdef-cubic-bezier">cubic-bezier()</a>
18661868
functions with Y values outside of [0, 1]) map to the closer
1867-
endpoint; if neither value is <span class="css" data-link-for="visibility">visible</span> then not interpolable.
1869+
endpoint; if neither value is <a class="css" data-link-for="visibility" data-link-type="maybe" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility">visible</a> then not interpolable.
18681870
</li>
18691871

18701872

0 commit comments

Comments
 (0)