Re: [csswg-drafts] [css-animations] Negative time at start of animation shorthand (#4034)

This also affects [transition](https://drafts.csswg.org/css-transitions/#propdef-transition).

> the first value that can be parsed as a time is assigned to the transition-duration, and the second value that can be parsed as a time is assigned to transition-delay.

Negative `<time>` values are invalid for `transition-duration`.

Suppose the author specifies `transition` as `'-5s'`.

Spec (possible reading):
  The negative value is rejected as it is only considered for `transition-duration`.
  Reading the specified transition gives `''`.
  Reading computed transition gives values from style rules, or initial values.

Edge 18:
  The negative value is accepted as `transition-duration`.
  Reading the specified transition gives `'-5s'`.
  Reading computed transition gives `''`.

Safari:
  The negative value is accepted as `transition-delay`.
  Reading the specified transition gives `'-5s'`.
  Reading computed transition gives `'all 0s ease -5s'`.

Firefox:
  The negative value is accepted as `transition-delay`.
  Reading the specified transition gives `'all 0s ease -5s'`.
  Reading computed transition gives `''`.

Blink:
  The negative value is accepted as `transition-delay`.
  Reading the specified transition gives `'all 0s ease -5s'`.
  Reading computed transition gives `'all 0s ease -5s'`.

https://jsfiddle.net/ericwilligers/ho3jxw4r/


-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4034#issuecomment-520204720 using your GitHub account

Received on Sunday, 11 August 2019 06:44:40 UTC