Closed Bug 1421672 Opened 7 years ago Closed 7 years ago

Explicitly declare the start/end values of CSS animations since optimizations require both

Categories

(Core :: Layout, enhancement, P3)

57 Branch
enhancement

Tracking

()

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: jaws, Assigned: jaws)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1419096 +++

Bug 1419096 comment 11 pointed out that we need to specify both the 0% and 100% values of @keyframes for current optimizations to apply.

The patches in this bug will add default start or end values to @keyframes in mozilla-central so they will be available for optimizations.
I'm waiting for a response to https://bugzilla.mozilla.org/show_bug.cgi?id=1419096#c16 before I attach the patch here. Flagging myself for needinfo...
Flags: needinfo?(jaws)
Flags: needinfo?(jaws)
Comment on attachment 8933065 [details]
Bug 1421672 - Explicitly declare the start/end values of CSS animations since optimizations require both.

https://reviewboard.mozilla.org/r/204028/#review209814

::: browser/themes/shared/customizableui/customizeMode.inc.css:669
(Diff revision 1)
>    animation: game-over 4s forwards ease;
>  }
>  
>  @keyframes game-over {
> +  0% {
> +    transform: scale(1) translateY(0) rotateZ(0);

Do we have to set the initial opacity here?
Attachment #8933065 - Flags: review?(mconley) → review+
Comment on attachment 8933065 [details]
Bug 1421672 - Explicitly declare the start/end values of CSS animations since optimizations require both.

https://reviewboard.mozilla.org/r/204028/#review209824

::: browser/themes/shared/customizableui/customizeMode.inc.css:669
(Diff revision 1)
>    animation: game-over 4s forwards ease;
>  }
>  
>  @keyframes game-over {
> +  0% {
> +    transform: scale(1) translateY(0) rotateZ(0);

Yeah, good call. I'll fix it up and land this. Thanks!
Pushed by jwein@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/09b116a802ff
Explicitly declare the start/end values of CSS animations since optimizations require both. r=mconley
https://hg.mozilla.org/mozilla-central/rev/09b116a802ff
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Depends on: 1430884
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: