mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: The 'all' property is not animatable.
Since it allows to animate display, which is not good. This is a regression from: https://hg.mozilla.org/mozilla-central/rev/6884ba750aa3 Actually I wonder if the logic shouldn't be the other way around, i.e., a shorthand is animatable if all the longhands are, not if just one. In any case this rolls back to the previous behavior, should we do that, it should be another bug. Differential Revision: https://phabricator.services.mozilla.com/D14632
This commit is contained in:
parent
4799e83e3c
commit
31838b1e6f
1 changed files with 4 additions and 4 deletions
|
@ -388,12 +388,12 @@ class Shorthand(object):
|
|||
and allowed_in_keyframe_block != "False"
|
||||
|
||||
def get_animatable(self):
|
||||
animatable = False
|
||||
if self.ident == "all":
|
||||
return False
|
||||
for sub in self.sub_properties:
|
||||
if sub.animatable:
|
||||
animatable = True
|
||||
break
|
||||
return animatable
|
||||
return True
|
||||
return False
|
||||
|
||||
def get_transitionable(self):
|
||||
transitionable = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue