Closed Bug 827698 Opened 12 years ago Closed 11 years ago

[css3-animations] determine the number of animations using the length of the 'animation-name' list

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

We currently determine the number of CSS animations based on the longest animation-* property, rather than the length of the animation-name list, as we should.

I suspect this is a case where I concluded the spec was wrong, sent comments to www-style, and then implemented what it said instead of what it should say... and then by the time the spec got fixed, forgot that I'd done that.

Hopefully most users of animations are using the animation shorthand, and are therefore unlikely to run into compatibility issues; there is a risk of that, though.
http://dev.w3.org/csswg/css3-animations/#animation-name-property is the relevant bit of spec:

If the lists of values for the other animation properties do not have the same length, the length of the ‘animation-name’ list determines the number of items in each list examined when starting animations. The lists are matched up from the first value: excess values at the end are not used. If one of the other properties doesn't have enough comma-separated values to match the number of values of ‘animation-name’, the UA must calculate its used value by repeating the list of values until there are enough. This truncation or repetition does not affect the computed value.
Comment on attachment 699011 [details] [diff] [review]
Use the length of the 'animation-name' list when determining how many animations to run.

r=me
Attachment #699011 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/fb69b7be1c0e
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: