@@ -1458,18 +1458,41 @@ <h3 id=animation-shorthand-property><span class=secno>4.10. </span> The
14581458 </ table >
14591459
14601460 < div class =prod > < dfn id =single-animation > <single-animation></ dfn > =
1461- <single-animation-name> || < span > <time></ span > ||
1462- <single-animation-timing-function> || < span > <time></ span > ||
1463- <single-animation-iteration-count> ||
1461+ < span > <time></ span > || <single-animation-timing-function> ||
1462+ < span > <time></ span > || <single-animation-iteration-count> ||
14641463 <single-animation-direction> || <single-animation-fill-mode>
1465- || <single-animation-play-state></ div >
1464+ || <single-animation-play-state> || <single-animation-name> </ div >
14661465
14671466 < p > Note that order is important within each animation definition: the
14681467 first value in each <single-animation> that can be parsed as a
14691468 < var > <time></ var > is assigned to the animation-duration, and the
14701469 second value in each <single-animation> that can be parsed as a
14711470 < var > <time></ var > is assigned to animation-delay.
14721471
1472+ < p > Note that order is also important within each animation definition for
1473+ distinguishing <single-animation-name> values from other keywords.
1474+ When parsing, keywords that are valid for properties other than ‘< a
1475+ href ="#animation-name "> < code class =property > animation-name</ code > </ a > ’
1476+ must be accepted for those properties rather than for ‘< a
1477+ href ="#animation-name "> < code class =property > animation-name</ code > </ a > ’.
1478+ Furthermore, when serializing, default values of other properties must be
1479+ output in at least the cases necessary to distinguish an ‘< a
1480+ href ="#animation-name "> < code class =property > animation-name</ code > </ a > ’
1481+ that could be a value of another property, and may be output in additional
1482+ cases. < span class =example > For example, a value parsed from ‘< code
1483+ class =css > animation: 3s none backwards</ code > ’ (where ‘< a
1484+ href ="#animation-fill-mode "> < code
1485+ class =property > animation-fill-mode</ code > </ a > ’ is ‘< code
1486+ class =css > none</ code > ’ and ‘< a href ="#animation-name "> < code
1487+ class =property > animation-name</ code > </ a > ’ is ‘< code
1488+ class =css > backwards</ code > ’) must not be serialized as ‘< code
1489+ class =css > animation: 3s backwards</ code > ’ (where ‘< a
1490+ href ="#animation-fill-mode "> < code
1491+ class =property > animation-fill-mode</ code > </ a > ’ is ‘< code
1492+ class =css > backwards</ code > ’ and ‘< a href ="#animation-name "> < code
1493+ class =property > animation-name</ code > </ a > ’ is ‘< code
1494+ class =css > none</ code > ’). </ span >
1495+
14731496 < p class =issue > Need to also explain how order is important in terms of
14741497 animation-name versus keywords, and probably also adjust the canonical
14751498 order to match.
0 commit comments