W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2019

[csswg-drafts] [css-animations-1] Font-relative units in keyframes (#3751)

From: andruud via GitHub <sysbot+gh@w3.org>
Date: Wed, 20 Mar 2019 14:15:07 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-423274847-1553091304-sysbot+gh@w3.org>
andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-animations-1] Font-relative units in keyframes ==
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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3751 using your GitHub account
Received on Wednesday, 20 March 2019 14:15:09 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:45 UTC