mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
nscsspropertyid_is_animatable handles shorthand property as well.
We consider the shorthand animatable if any of sub properties are animatable.
This commit is contained in:
parent
b587bf9be1
commit
c1ec6f6913
1 changed files with 10 additions and 0 deletions
|
@ -199,6 +199,16 @@ pub fn nscsspropertyid_is_animatable(property: nsCSSPropertyID) -> bool {
|
|||
${helpers.to_nscsspropertyid(prop.ident)} => true,
|
||||
% endif
|
||||
% endfor
|
||||
% for prop in data.shorthands_except_all():
|
||||
<%
|
||||
animatable = "false"
|
||||
for sub in prop.sub_properties:
|
||||
if sub.animatable:
|
||||
animatable = "true"
|
||||
break
|
||||
%>
|
||||
${helpers.to_nscsspropertyid(prop.ident)} => ${animatable},
|
||||
% endfor
|
||||
_ => false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue