Bug 194395 - Fix animation rendering on the webkit.org homepage
Summary: Fix animation rendering on the webkit.org homepage
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Jon Davis
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-02-07 08:58 PST by Jon Davis
Modified: 2019-02-07 17:22 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.86 KB, patch)
2019-02-07 08:59 PST, Jon Davis
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Davis 2019-02-07 08:58:28 PST
When the slow animation on the webkit.org homepage completes, the position of the compass element often jumps and becomes incorrectly positioned.
Comment 1 Jon Davis 2019-02-07 08:59:49 PST
Created attachment 361402 [details]
Patch
Comment 2 Nikita Vasilyev 2019-02-07 11:52:26 PST
Comment on attachment 361402 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=361402&action=review

Could you attach a screenshot of the bug?

> Websites/webkit.org/wp-content/themes/webkit/front-header.php:-103
> -    @-webkit-keyframes bgspin {
> -        from {
> -            transform: translateY(-400px) rotate(0);
> -            -webkit-transform: translateY(-400px) rotate(0deg);
> -        }
> -
> -        to {
> -            transform: translateY(-400px) rotate(360);
> -            -webkit-transform: translateY(-400px) rotate(360deg);
> -        }
> -    }
> -

Nice that we don't need to use -webkit- prefix here anymore.
Comment 3 Nikita Vasilyev 2019-02-07 12:33:36 PST
Do you know why it was jumping? Was it related to font-size changes (I see you previously used rem units)?
Comment 4 Nikita Vasilyev 2019-02-07 13:35:34 PST
Comment on attachment 361402 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=361402&action=review

> Websites/webkit.org/wp-content/themes/webkit/front-header.php:51
> +        transform: translateY(-450px);

What's the reasoning behind this change? Is it just gardening? E.g. using pixels for consistency.

> Websites/webkit.org/wp-content/themes/webkit/front-header.php:81
> +        transform: translateY(-400px);

Discussed offline. This line fixes the issue, the rest is a cleanup.

I'd r+.
Comment 5 Nikita Vasilyev 2019-02-07 13:37:02 PST
(In reply to Nikita Vasilyev from comment #4)
> Comment on attachment 361402 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=361402&action=review
> 
> > Websites/webkit.org/wp-content/themes/webkit/front-header.php:51
> > +        transform: translateY(-450px);
> 
> What's the reasoning behind this change? Is it just gardening? E.g. using
> pixels for consistency.

Ignore my question. We've discussed this — pixels are used for consistency.
Comment 6 Devin Rousso 2019-02-07 16:39:58 PST
Comment on attachment 361402 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=361402&action=review

rs=me

> Websites/webkit.org/wp-content/themes/webkit/front-header.php:76
> +        animation-name: bgspin;

If you can reproduce the bug we discussed offline about this (e.g. a reduction), please file a bug for it :)
Comment 7 WebKit Commit Bot 2019-02-07 17:21:39 PST
Comment on attachment 361402 [details]
Patch

Clearing flags on attachment: 361402

Committed r241178: <https://trac.webkit.org/changeset/241178>
Comment 8 WebKit Commit Bot 2019-02-07 17:21:41 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-02-07 17:22:27 PST
<rdar://problem/47903889>