Re: Why is "0" not valid?

On 28 Mar 2017, at 10:36, Tomáš wrote:
> @keyframes scale-nonstop {
>   0 {
>     transform: scale(1.2)
>   }
>
> Why is "0" not valid?

Because the specification says that the [keyframe-selector][1] may be 
`from`, `to`, or a percentage and that a [percentage][2] is *a number 
immediately followed by a percent sign*. `0` is a number that isn’t 
followed by a percent sign.


[1]: https://drafts.csswg.org/css-animations/#keyframes
[2]: https://drafts.csswg.org/css-values-3/#percentage-value

Received on Tuesday, 28 March 2017 13:25:50 UTC