New issue
Advanced search Search tips

Issue 649027 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Incorrect layout of child-elements until parent keyframe-animation starts

Reported by williamb...@gmail.com, Sep 21 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36

Example URL:
https://jsfiddle.net/hkjb10ha/

Steps to reproduce the problem:
1. Create parent element containing two or more children.
2. Set position of children to `relative` or `absolute`.
3. Create keyframe animation for parent using `transform: rotate()` function.
4. Assign animation properties to parent element. Set `animation-delay` in order to observe layout issue. Additionally, set `animation-length` to arbitrary value along with `animation-name` to match the name given to the keyframe-animation.

What is the expected behavior?
Layout of child-elements should match expected layout upon page load.

What went wrong?
Child-elements do match match expected layout.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? No 

Did this work before? Yes Up until version 53.0.2785.116

Does this work in other browsers? Yes 

Chrome version: 53.0.2785.116  Channel: stable
OS Version: 10.0
Flash Version: Shockwave Flash 23.0 r0

<style>
@keyframes shake {
    50% {
        transform: rotate(-5deg);
    }
}

.child {
    position: relative;
}

#parent {
    animation-delay: 5s;
    animation-duration: 1s;
    animation-name: shake;
}
</style>
<!--Initial loading of the page in Chrome 53 improperly aligns `Child 1` until the animation begins.-->
<!--If #parent has a matching `transform: rotate(0deg);` definition, alignment is correct.-->
<div id="parent">
        <span class="child">{Child 0}</span>
        <span class="child">{Child 1}</span>
</div>
 
chrome-53-layout-issue.gif
55.8 KB View Download
Just noticed a typo:

> What went wrong?

Child-elements do **not** match match expected layout.

Comment 2 by tkent@chromium.org, Dec 9 2016

Components: Blink>Animation Blink>Layout

Comment 3 by samli@chromium.org, Dec 11 2016

Labels: -Type-Compat Needs-TestConfirmation Type-Bug
Could not reproduce on
Google Chrome	55.0.2883.75 (Official Build) (64-bit)
Revision	451c239c3b0722dc867b0f75839b959f729b756a-refs/branch-heads/2883@{#698}
OS	Linux
Confirmed this is no longer a problem even with 54.0.2840.99 m on Windows.

Comment 5 by e...@chromium.org, Dec 13 2016

Status: WontFix (was: Unconfirmed)
Thanks for confirming williambogaiv!

Sign in to add a comment