Discussion:
[css-transitions] value regex for transition-property does not meet description
(too old to reply)
Dennis Heuer
2018-01-16 21:28:28 UTC
Permalink
Hello,

take it or not but don't bother me with 'wont fix!'

https://www.w3.org/TR/css-transitions-1/#propdef-transition-property

Value: none | <single-transition-property> #
Initial: all

The above doesn't mention 'all' as a valid value. Below the blue box,
'all' is explained to be a single-transition-property. Exactly in the
next paragraph it is (correctly) called a 'keyword' and differed from
single-transition-properties. This is confusing.

The description below the blue box says:

<'single-transition-property'> = all | <custom-ident>;

A value of none means that no property will transition. Otherwise,
a list of properties to be transitioned, or the keyword all which
indicates that all properties are to be transitioned, is given.


Regards,
---------------------------------------------------------------------
Dennis Heuer
***@verschwendbare-verweise.seinswende.de
Tab Atkins Jr.
2018-01-16 23:30:57 UTC
Permalink
On Tue, Jan 16, 2018 at 1:28 PM, Dennis Heuer
Post by Dennis Heuer
Hello,
take it or not but don't bother me with 'wont fix!'
https://www.w3.org/TR/css-transitions-1/#propdef-transition-property
Value: none | <single-transition-property> #
Initial: all
The above doesn't mention 'all' as a valid value. Below the blue box,
'all' is explained to be a single-transition-property. Exactly in the
next paragraph it is (correctly) called a 'keyword' and differed from
single-transition-properties. This is confusing.
<'single-transition-property'> = all | <custom-ident>;
A value of none means that no property will transition. Otherwise,
a list of properties to be transitioned, or the keyword all which
indicates that all properties are to be transitioned, is given.
What do you think is wrong here? "all" is indeed included as part of
<single-transition-property>, and so the initial value does indeed
correctly match the grammar.

It's not written as `none | all | <single-transition-property>#`
because `transition-property: color, all, background-position` is
meant to be allowed - the "all" is part of the comma-separated list,
not a totally separate grammar term that has to stand on its own, like
"none" is.

~TJ
Dennis Heuer
2018-01-16 23:53:30 UTC
Permalink
On Tue, 16 Jan 2018 15:30:57 -0800
Post by Tab Atkins Jr.
On Tue, Jan 16, 2018 at 1:28 PM, Dennis Heuer
Post by Dennis Heuer
Hello,
take it or not but don't bother me with 'wont fix!'
https://www.w3.org/TR/css-transitions-1/#propdef-transition-property
Value: none | <single-transition-property> #
Initial: all
The above doesn't mention 'all' as a valid value. Below the blue
box, 'all' is explained to be a single-transition-property. Exactly
in the next paragraph it is (correctly) called a 'keyword' and
differed from single-transition-properties. This is confusing.
<'single-transition-property'> = all | <custom-ident>;
A value of none means that no property will transition. Otherwise,
a list of properties to be transitioned, or the keyword all which
indicates that all properties are to be transitioned, is given.
What do you think is wrong here? "all" is indeed included as part of
<single-transition-property>, and so the initial value does indeed
correctly match the grammar.
It's not written as `none | all | <single-transition-property>#`
because `transition-property: color, all, background-position` is
meant to be allowed - the "all" is part of the comma-separated list,
not a totally separate grammar term that has to stand on its own, like
"none" is.
~TJ
Then still the text in the paragraph says the opposite or is at least
confusing because it says: "..., or the keyword all which indicates
that all properties are to be transitioned, is given." This makes the
keyword 'all' look exclusive. If that is not the case, it would be
better to write two paragraphs:

A value of none means that no property will transition. Otherwise,
a list of properties to be transitioned is given

The property all indicates that all properties are to be transitioned
and might be used like <explanatory examples>

Regards,
---------------------------------------------------------------------
Dennis Heuer
***@verschwendbare-verweise.seinswende.de

Loading...