Skip to content

[css-animations-1] Font-relative units in keyframes #3751

Closed
@andruud

Description

@andruud

What does em resolve against in the following animation?

@keyframes anim1 {
    from { font-size: 10px; width: 10em; }
    to   { font-size: 20px; width: 20em; }
}

In Chrome, anim1 produces an animation for width in em-space, where em is resolved against the animated font-size for each frame.

In FF, anim1 produces an animation for width from 160px to 320px, i.e. the font-size of the keyframe is ignored.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions