Skip to content

[css-values] Ambiguities with 0 valid for all dimensions #1162

Closed
@ewilligers

Description

@ewilligers

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> ]? ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions