csswg-drafts
csswg-drafts copied to clipboard
[css-transitions-1] transition-property and transition shorthand conflict on whether none can be listed
transition-property: none | <single-transition-property>#
transition: [ [ none | <single-transition-property> ] || <time> || <single-timing-function> || <time> ]#
The transition
shorthand allows none
to be listed multiple times, but the transition-property
shorthand it's supposed to be assigned into doesn't allow that. One of these syntaxes is therefore wrong.
Did you missed the transition
prose for this rule? (explained in this thread from the archive)
If there is more than one
<single-transition>
in the shorthand, and any of the transitions hasnone
as the<single-transition-property>
, then the declaration is invalid.
EDIT: actually this rule does not make sense because <single-transition-property>
does not include none
.
Or do you mean that this rule should be hard coded in its value definition, eg.:
Name: transition Value:
<single-transition> [ , [<single-transition-property> || <time> || <easing-function> || <time>]# ]?
<single-transition> = <'transition-property'> || <time> || <easing-function> || <time>
Obviously it would be less confusing to rename <single-transition-property>
.