csswg-drafts icon indicating copy to clipboard operation
csswg-drafts copied to clipboard

[css-transitions-1] transition-property and transition shorthand conflict on whether none can be listed

Open fantasai opened this issue 7 years ago • 1 comments

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.

fantasai avatar Dec 03 '17 00:12 fantasai

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 has none 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>.

cdoublev avatar Sep 08 '22 11:09 cdoublev