-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-animations] Negative time at start of animation shorthand #4034
Comments
This also affects transition.
Negative Suppose the author specifies Spec (possible reading): Edge 18: Safari: Firefox: Blink: |
I think the discrepancy there is just due to Firefox not returning shorthands from |
For the purpose of this issue, I believe Gecko and Blink and Safari agree: they all accept the leading negative time as |
We could have
This allows for cases like |
Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223
Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223
Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223
Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223
Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223
… shorthand, a=testonly Automatic update from web-platform-tests [css-animations] [css-transitions] parse shorthand (#19195) Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 -- wpt-commits: edffcf9ef316c6906591e734cea5bb42c8a60fdf wpt-pr: 19195
… shorthand, a=testonly Automatic update from web-platform-tests [css-animations] [css-transitions] parse shorthand (#19195) Parsing tests for animation and transition shorthands. https://drafts.csswg.org/css-animations/#animation https://drafts.csswg.org/css-transitions/#transition-shorthand-property Open issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 -- wpt-commits: edffcf9ef316c6906591e734cea5bb42c8a60fdf wpt-pr: 19195
WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b
WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b
WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#700825}
WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#700825}
WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#700825}
…nd transition, a=testonly Automatic update from web-platform-tests CSS: Test computed value for animation and transition WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#700825} -- wpt-commits: 8530693c047e221fb2f55070082eb79620c56084 wpt-pr: 19320
…nd transition, a=testonly Automatic update from web-platform-tests CSS: Test computed value for animation and transition WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligers@chromium.org> Commit-Queue: Stephen McGruer <smcgruer@chromium.org> Reviewed-by: Stephen McGruer <smcgruer@chromium.org> Cr-Commit-Position: refs/heads/master@{#700825} -- wpt-commits: 8530693c047e221fb2f55070082eb79620c56084 wpt-pr: 19320
…nd transition, a=testonly Automatic update from web-platform-tests CSS: Test computed value for animation and transition WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligerschromium.org> Commit-Queue: Stephen McGruer <smcgruerchromium.org> Reviewed-by: Stephen McGruer <smcgruerchromium.org> Cr-Commit-Position: refs/heads/master{#700825} -- wpt-commits: 8530693c047e221fb2f55070082eb79620c56084 wpt-pr: 19320 UltraBlame original commit: c7015155594cd0b9aca8ec471c3ae4119fc62fec
…nd transition, a=testonly Automatic update from web-platform-tests CSS: Test computed value for animation and transition WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligerschromium.org> Commit-Queue: Stephen McGruer <smcgruerchromium.org> Reviewed-by: Stephen McGruer <smcgruerchromium.org> Cr-Commit-Position: refs/heads/master{#700825} -- wpt-commits: 8530693c047e221fb2f55070082eb79620c56084 wpt-pr: 19320 UltraBlame original commit: c7015155594cd0b9aca8ec471c3ae4119fc62fec
…nd transition, a=testonly Automatic update from web-platform-tests CSS: Test computed value for animation and transition WPT for animation and transition shorthand computed values. Open spec issues: w3c/csswg-drafts#2031 w3c/csswg-drafts#4034 w3c/csswg-drafts#4223 Change-Id: I3cac663f8a4cdce53856a9152e7b38033be9a76b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827317 Auto-Submit: Eric Willigers <ericwilligerschromium.org> Commit-Queue: Stephen McGruer <smcgruerchromium.org> Reviewed-by: Stephen McGruer <smcgruerchromium.org> Cr-Commit-Position: refs/heads/master{#700825} -- wpt-commits: 8530693c047e221fb2f55070082eb79620c56084 wpt-pr: 19320 UltraBlame original commit: c7015155594cd0b9aca8ec471c3ae4119fc62fec
https://drafts.csswg.org/css-animations/#animation
Negative
<time>
values are invalid foranimation-duration
.Does this mean that if a negative
<time>
(like'-5s'
) appears at the start ofanimation
, the shorthand value is invalid?Spec (possible reading):
The negative value is rejected as it is only considered for
animation-duration
.Reading the specified animation gives
''
.Reading computed animation gives values from style rules, or initial values.
Edge 18:
The negative value is accepted as
animation-duration
.Reading the specified animation gives
'-5s'
.Reading computed animation gives
''
.Safari:
The negative value is accepted as
animation-delay
.Reading the specified animation gives
'-5s'
.Reading computed animation gives
''
.Firefox:
The negative value is accepted as
animation-delay
.Reading the specified animation gives
'0s ease -5s 1 normal none running none'
.Reading computed animation gives
''
.Blink:
The negative value is accepted as
animation-delay
.Reading the specified animation gives
'0s ease -5s 1 normal none running none'
.Reading computed animation gives
'0s ease -5s 1 normal none running none'
.https://jsfiddle.net/ericwilligers/eapsLyub/
The text was updated successfully, but these errors were encountered: