w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.5k stars 661 forks source link

[css-viewport] Is zoom supposed to be non animatable? #10872

Open birtles opened 1 month ago

birtles commented 1 month ago

The zoom property is defined to be non-animatable. According to Mozilla bug 1917602 Chrome makes this property discretely animatable, Safari makes it non-animatable, and Gecko does smooth animation (i.e. animates as a number/percent).

We'll fix Gecko, but should we be matching Chrome's behavior or is there a good reason for making zoom non-animatable? (For reference, we normally only make properties non-animatable when there's a strong reason like transition-* and animation-* properties where making them animatable would introduce obvious cyclic dependencies.)

andruud commented 1 month ago

I can't immediately think of a reason why it needs to be non-animatable.

cc @szager-chromium

emilio commented 1 month ago

Cc @smfr