CSS zoom property is animatable contrary to what spec says
Categories
(Core :: CSS Transitions and Animations, defect, P3)
Tracking
()
People
(Reporter: vmakeev, Assigned: tannal2409, Mentored)
References
()
Details
(Keywords: good-first-bug)
Attachments
(2 files)
The CSS Viewport Module Level 1 spec lists the zoom
property as not animatable. Though it can be animated in Firefox:
p {
zoom: 2;
animation: zoom 1s linear infinite alternate;
}
@keyframes zoom {
from {
zoom: 2;
}
to {
zoom: 4;
}
}
Chrome does discrete animation without transitions in between, while Safari doesn’t do anything at all. I’m not sure which behavior is correct (Chrome or Safari), but according to the spec, there should be no smooth animation.
Reporter | ||
Comment 1•25 days ago
|
||
Emilio, I believe you were involved in the implementation.
Comment 2•25 days ago
|
||
Hmm, well, I guess.
I think we should at least do discrete animation. I don't think it matters much in practice.
This should be a matter of adding animation_type="discrete"
to here, and adding a test.
Comment 3•23 days ago
|
||
Filed https://github.com/w3c/csswg-drafts/issues/10872 to clarify if the spec really intends this property to be non-animatable. Once that's resolved I might have a contributor I'm looking to onboard who can take this.
Assignee | ||
Comment 4•12 days ago
|
||
Updated•12 days ago
|
Updated•11 days ago
|
Comment 8•9 days ago
|
||
Shouldn't we have gotten the spec fixed or at least agreed upon before landing this?
Comment 9•8 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f3cc65f111ef
https://hg.mozilla.org/mozilla-central/rev/d5d237db3e73
Comment 10•8 days ago
|
||
(In reply to Brian Birtles (:birtles) from comment #8)
Shouldn't we have gotten the spec fixed or at least agreed upon before landing this?
Yeah sorry, I had missed your csswg issue. I added it to the agenda.
Comment 11•8 days ago
|
||
Backed out on request by emilio
Backout: https://hg.mozilla.org/integration/autoland/rev/2bb69969f239b6fd2ef2bec51b3596959db863da
Comment 13•8 days ago
|
||
Backout merged to central: https://hg.mozilla.org/integration/autoland/rev/2bb69969f239b6fd2ef2bec51b3596959db863da
Comment 14•8 days ago
|
||
No need to do anything yet, let's wait for the spec issue.
Description
•