Skip to content

Commit 8fe46cf

Browse files
committed
Describe repeating/truncation behavior for uneven length lists, using rules where transition-property is the important length.
This resolves https://www.w3.org/Bugs/Public/show_bug.cgi?id=14604 as proposed in http://lists.w3.org/Archives/Public/www-style/2012Mar/0013.html and resolved in the 2012 February 29 teleconference (minutes at http://lists.w3.org/Archives/Public/www-style/2012Mar/0013.html ).
1 parent 6602eac commit 8fe46cf

2 files changed

Lines changed: 33 additions & 16 deletions

File tree

css3-transitions/Overview.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,23 @@ <h2 id=transitions><span class=secno>2. </span>Transitions</h2>
282282
transition over a period of two seconds and the left property to
283283
transition over a period of four seconds.</div>
284284

285-
<p> In the case where the list of values in transition properties do not
286-
have the same length, the list is repeated as a whole in order to provide
287-
necessary values.
288-
289-
<p class=issue> Issue: Are the lists repeated to all be the length of the
290-
longest list, or are they repeated or truncated to match the length of the
285+
<p> In the case where the lists of values in transition properties do not
286+
have the same length, the length of the &lsquo;<a
287+
href="#transition-property"><code
288+
class=property>transition-property</code></a>&rsquo; list determines the
289+
number of items in each list examined when starting transitions. The lists
290+
are matched up from the first value: excess values at the end are not
291+
used. If one of the other properties doesn't have enough comma-separated
292+
values to match the number of values of &lsquo;<a
293+
href="#transition-property"><code
294+
class=property>transition-property</code></a>&rsquo;, the UA must
295+
calculate its used value by repeating the list of values until there are
296+
enough. This truncation or repetition does not affect the computed value.
297+
<span class=note> Note: This is analogous to the behavior of the
298+
&lsquo;<code class=css>background-*</code>&rsquo; properties, with
299+
&lsquo;<code class=property>background-image</code>&rsquo; analogous to
291300
&lsquo;<a href="#transition-property"><code
292-
class=property>transition-property</code></a>&rsquo; list?
301+
class=property>transition-property</code></a>&rsquo;. </span>
293302

294303
<div class=example>
295304
<p style="display:none"> Example(s):</p>

css3-transitions/Overview.src.html

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -138,17 +138,25 @@ <h2 id="transitions">Transitions</h2>
138138

139139
</pre>This will cause the <code class="property">'opacity'</code> property to transition over a period of two seconds and the left property to transition over a period of four seconds.
140140
</div>
141-
141+
142142
<p>
143-
In the case where the list of values in transition properties do not have
144-
the same length, the list is repeated as a whole in order to provide necessary values.
145-
</p>
146-
<p class="issue">
147-
Issue: Are the lists repeated to all be the length of the
148-
longest list, or are they repeated or truncated to match the
149-
length of the 'transition-property' list?
143+
In the case where the lists of values in transition properties
144+
do not have the same length, the length of the
145+
'transition-property' list determines the number of items in
146+
each list examined when starting transitions. The lists are
147+
matched up from the first value: excess values at the end are
148+
not used. If one of the other properties doesn't have enough
149+
comma-separated values to match the number of values of
150+
'transition-property', the UA must calculate its used value by
151+
repeating the list of values until there are enough. This
152+
truncation or repetition does not affect the computed value.
153+
<span class="note">
154+
Note: This is analogous to the behavior of the 'background-*'
155+
properties, with 'background-image' analogous to
156+
'transition-property'.
157+
</span>
150158
</p>
151-
159+
152160
<div class="example">
153161
<p style="display:none">
154162
Example(s):

0 commit comments

Comments
 (0)