- From: ewilligers via GitHub <sysbot+gh@w3.org>
- Date: Mon, 03 Apr 2017 00:54:17 +0000
- To: public-css-archive@w3.org
ewilligers has just created a new issue for https://github.com/w3c/csswg-drafts:
== [css-values] Ambiguities with 0 valid for all dimensions ==
**animation example**
With the recent decision that 0 is a valid value for all dimensions, the following changes meaning:
`animation: 1s 0;`
The 0 would previously have been interpreted as iteration count.
Now it is interpreted as animation-delay, so the iteration count remains 1.
https://drafts.csswg.org/css-animations/#animation
`<single-animation> = <time> || <single-timing-function> || <time> || <single-animation-iteration-count> || ...
`
"Note that order is important within each animation definition: the first value in each `<single-animation>` that can be parsed as a `<time>` is assigned to the animation-duration, and the second value in each `<single-animation>` that can be parsed as a `<time>` is assigned to animation-delay."
**offset example**
With the recent decision that 0 is a valid value for all dimensions,
` offset: ray(180deg) 0;`
becomes ambiguous: 0 is a valid value for both offset-distance and offset-rotate.
offset-rotate is either 0 or auto.
https://drafts.fxtf.org/motion-1/#offset-shorthand
`Value: ... <offset-path> [ <offset-distance> || <offset-rotate> ]? ...`
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1162 using your GitHub account
Received on Monday, 3 April 2017 00:54:23 UTC