Fill computed property values where the propery is missing in initial and final keyframes.

@keyframes anim {
  from { opacity: 0; transform: none; }
  to { transform: none; }
}

In above case, we have to add opacity property and value in the 'to' keyframe.
This commit is contained in:
Hiroyuki Ikezoe 2017-02-22 18:50:35 +09:00
parent 501edfdbdb
commit 396db281e3
2 changed files with 39 additions and 10 deletions

View file

@ -43,7 +43,7 @@ use values::specified::Angle as SpecifiedAngle;
/// property.
// NB: This needs to be here because it needs all the longhands generated
// beforehand.
#[derive(Copy, Clone, Debug, PartialEq)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
pub enum TransitionProperty {
/// All, any animatable property changing should generate a transition.