CSS zoom property is animatable contrary to what spec says
Categories
(Core :: CSS Transitions and Animations, defect, P3)
Tracking
()
People
(Reporter: vmakeev, Unassigned, 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•1 year ago
|
||
Emilio, I believe you were involved in the implementation.
Comment 2•1 year 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•1 year 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.
Comment 4•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Shouldn't we have gotten the spec fixed or at least agreed upon before landing this?
Comment 9•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f3cc65f111ef
https://hg.mozilla.org/mozilla-central/rev/d5d237db3e73
Comment 10•1 year 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•1 year ago
|
||
Backed out on request by emilio
Backout: https://hg.mozilla.org/integration/autoland/rev/2bb69969f239b6fd2ef2bec51b3596959db863da
Comment 13•1 year ago
|
||
Backout merged to central: https://hg.mozilla.org/integration/autoland/rev/2bb69969f239b6fd2ef2bec51b3596959db863da
Comment 14•1 year ago
|
||
No need to do anything yet, let's wait for the spec issue.
Comment 15•1 year ago
|
||
This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.
Comment 16•8 months ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:tannal2409, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
Comment 17•8 months ago
|
||
The spec got resolved to our current behavior.
Description
•